file_get_contents not working

amber.long83's Avatar, Join Date: Nov 2009
Go4Expert Member
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?

Thanks
0
venami's Avatar, Join Date: Dec 2008
Ambitious contributor
I am getting the page loaded as you said.

Could you please explain what you are expecting?