I am receiving an error message in PHP 5 when I try to open a file of a different website. So the line
fopen("http://www.domain.com/some开发者_C百科file.php", r)
returns an error
Warning: fopen(www.domain.com/somefile.php) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in D:\xampp\htdocs\destroyfiles\index.php on line 2
Your PHP app failed to authenticate. The request URI should be:
http://user:password@www.domain.com/somefile.php
It looks like your PHP client (i.e. the server on which your PHP script is running) isn't allowed to get http://www.domain.com/somefile.php
, by the server on www.domain.com
.
精彩评论