Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

181
Visualizações
What is the best way to pass a string from PHP to another over different domain?

I have one Apache server running on my raspberry pi and another on a PC. I have an RFID reader connected to raspberry pi which is continually collecting data from nearby tags. I want to pass this single string from raspberry pi to the PC over the server. I looked up into different methods such as CRUL, Ajax, Streams. I have developed python server with sockets, and a basic file_get_contents. I want to do it using $_GET method with Ajax and pass data as Json data format. After using many different combinations I'm getting more and more confused about this server communications. I assume the easiest way would be to use json_encode and json_decode, but even this gives me NULL value. Can someone direct me to right starting point, or give an example of how to do this using $_GET method on both ends?

about 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda