为什么PHP的file_get_contents不适用于某些URL? $html = file_get_contents('http://modagram.com');由于上述原因,我收到以下警告:
PHP Warning: file_get_contents(http://modagram.com): failed to open stream: H
file_get_contents()只在google.com和youtube.com上工作,但它甚至不适用于我的域。这就是我要犯的错误。Warning: file_get_contents(oneofmydomains.com/) [function.file-get-contents]: failed to open stream:No such file or directory in /home/vhosts/oneofmydomains.com/subdomain