file_get_contents issue
Posted: Mon Jun 08, 2009 3:08 pm
I am trying to execute the following code:
but am getting the following error:
[08-Jun-2009 15:49:35] PHP Warning: file_get_contents(http://www.stratalighting.com/tw2.php?p ... 722:aplusk) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /Applications/MAMP/htdocs/IW/IW.php on line 179
This doesn't happen for all calls , only certain ones - like this one. The actual parameter is the following:
$cature = file_get_contents("http://www.stratalighting.com/tw2.php?p ... 722:aplusk");
Any ideas?
Code: Select all
$capture = file_get_contents('http://'.$channels['hostname_'.$page].$channels['pathholder_'.$page]);
[08-Jun-2009 15:49:35] PHP Warning: file_get_contents(http://www.stratalighting.com/tw2.php?p ... 722:aplusk) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /Applications/MAMP/htdocs/IW/IW.php on line 179
This doesn't happen for all calls , only certain ones - like this one. The actual parameter is the following:
$cature = file_get_contents("http://www.stratalighting.com/tw2.php?p ... 722:aplusk");
Any ideas?