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/subdomains/search/httpdocs/index.php on line 28
我还在我的htacces和php.ini中添加了php_value allow_url_fopen On
和allow_url_fopen = On
。
为什么我可以获取谷歌和YouTube的内容,但互联网上几乎没有其他域的内容?
您的
托管服务提供商似乎禁止访问其他域,除了几个"白色"域。此限制适用于免费主机