$file = @fopen("http://ajax.htm","rb");
I am getting this error while using fopen
Warning: fopen(xyz.htm): failed to open stream: HTTP request failed!
in /home/user/public_html/aaa/ttt.php on line 8
what could be the reason behind this?
$file = @fopen("http://ajax.htm","rb");
I am getting this error while using fopen
Warning: fopen(xyz.htm): failed to open stream: HTTP request failed!
in /home/user/public_html/aaa/ttt.php on line 8
what could be the reason behind this?
If PHP has decided that
filename
specifies a registered protocol, and that protocol is registered as a network URL, PHP will check to make sure thatallow_url_fopen
is enabled. If it is switched off, PHP will emit a warning and the fopen call will fail.
edit: ajax.htm
is not a valid url.
I am going to go out on a huge limb here and suggest the problem is the url, 'http://ajax.htm'.