php fopen => 500 Internal Server Error
Posted
by
Ahmed B
on Pro Webmasters
See other posts from Pro Webmasters
or by Ahmed B
Published on 2011-11-23T00:21:19Z
Indexed on
2011/11/23
2:10 UTC
Read the original article
Hit count: 617
php
I have a website hosted on a dedicated server, I noticed that Google and other search engines can't access to the most URLs on my website!!
On my localhost I have made a small test :
var_dump(fopen('http://www.aswat.ma', 'r'));
And I got this error :
Warning: fopen(http://www.aswat.ma) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in C:\xampp\htdocs\pnowate\public\index.php on line 4 bool(false)
If I change the URL "http://www.aswat.ma" by "www.google.co.ma" I got this :
resource(3) of type (stream)
Any one have any idea about this issue ??
© Pro Webmasters or respective owner