Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/forums/php/)
-   -   file_get_contents not working (http://www.go4expert.com/forums/filegetcontents-not-working-t20068/)

amber.long83 12Nov2009 17:50

file_get_contents not working
Hello all,

This is my code:

PHP Code:
$url = "Show.php?ShowID=1";
$str = file_get_contents($url);
echo $str;

That's supposed to get the contents of show.php with showID as 1. But this doesn't work. Just typing show.php works, but the ?showID=1 does not work.

How could I make it so that it works?


venami 12Nov2009 21:57

Re: file_get_contents not working
I am getting the page loaded as you said.

Could you please explain what you are expecting?

All times are GMT +5.5. The time now is 22:28.