Jump to content

file_get_contents not working for some reason


chinchi86

Recommended Posts

Hello all,

 

This is my code:

 

$url = "userreview.php?reviewID=1";
$str = file_get_contents($url);
echo $str;  

 

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

 

How could I make it so that it works?

 

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.