Forum Moderators: coopster

Message Too Old, No Replies

can file() open dynamic urls?

         

ahmedtheking

2:10 pm on Feb 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm trying to get file to open a dynamic url:

$file = implode("",file("http://www.webmasterworld.com/somefile.php?s=".$s));

But it seems that it's opening the file, but not passing the GET vars. Any ideas? Can this only be done via fsockopen?

ahmedtheking

4:54 pm on Feb 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sorry, my bad! Yes you can open dynamic urls with file! I just forgot to add the '&' in the URL so the vars weren't right! woops!