Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

169
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!