file_get_contents() question
Posted: Wed Nov 17, 2010 1:57 pm
This line works fine for me when I read the contents of the URL into a string
This one, which tries to add flexibility of changing some parameters yields the error below it.
Error:
Jackl
Code: Select all
$fname = file_get_contents('http://www.mydomain.com/ci/ci.php?/ch/b/02/972/L/0/M/0/1/972');Code: Select all
$modid = 972;
$filetoget = "'http://www.mydomain.com/ci/ci.php?/ch/b/02/" .$modid ."/L/0/M/0/1/" .$modid ."'";
$fname = file_get_contents($filetoget);Am I missing something obvious.? The function seems to be interpreting the $fname variable correctly.A PHP Error was encountered
Severity: Warning
Message: file_get_contents('http://www.mydomain.com/ci/ci.php?/ch/b ... /M/0/1/972') [function.file-get-contents]: failed to open stream: Permission denied
Jackl