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.