Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

168
Vistas
using variables in http links

I wish to download data from a web site. The link is of the format

$homepage = file_get_contents('http://www.dataserver.com/getfeed/72062b24e00c4aa4ad7208d98c02bb39/h2h/9249/9002');

when I send this link the download is successful. However, because the two values 9249 and 9002 will be changing, I prefer to embed them in the link as variables, thus $homepage = file_get_contents('http://www.dataserver.com/getfeed/72062b24e00c4aa4ad7208d98c02bb39/h2h/$t1/$t2');

This string fails to download. My request is for help on the correct format of embedding $t1 and $t2. Thanks.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda