I am currently experiencing the following problem:
When using file_get_contents() on a certain site I get the following error:
"failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in /var/www/vhosts/domain.com/file.php"
Code is as follows:
$lcurl = 'http://www.somdomain.com?param1=value¶m2=value2 ;
$output = file_get_contents($lcurl,false) ; ****errors here
echo($output) ;
I can take this same URL and put it in a browser window on the same server and it loads and executes on remote server fine but if I take and put it in php file server side script it fails.
If I do same thing with another domain like file_get_contents('www.g**gle.com') it displays fine.
Its strange but I'm thinking it has something to do with the absolute paths on the remote server Im calling but I'm not sure what needs to be updated.
Please advise.
thanks
Ronnie Tanner
Online Backup