inControl
inControl

Reputation: 2324

file_get_contents() only works on google.com and youtube.com

file_get_contents() only works on google.com and youtube.com but it doesn't even work on my domains. This is the error i'm getting.

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

I also added php_value allow_url_fopen On and allow_url_fopen = On to my htacces and php.ini.

Why can I get the contents of google and youtube but almost none of the other domains on the internet?

Upvotes: 0

Views: 261

Answers (1)

Bogdan Solomykin
Bogdan Solomykin

Reputation: 176

it seems, your hosting provider disable access to other domains, except of several "white" domains. This restraint is applied on free hostings

Upvotes: 1

Related Questions