开发者

php fopen: failed to open stream: HTTP request failed! HTTP/1.0 403

开发者 https://www.devze.com 2023-01-23 11:47 出处:网络
I am receiving an error message in PHP 5 when I try to open a file of a different website. So the line

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百科f­ile.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/somef­ile.php, by the server on www.domain.com.

0

精彩评论

暂无评论...
验证码 换一张
取 消