Quantcast
Channel: Eureka! » PHP
Viewing all articles
Browse latest Browse all 16

PHP – http:// wrapper is disabled in the server configuration by allow_url_fopen=0

$
0
0

If you find these 2 errors in the error log.

  • …file_get_contents() [function.file-get-contents]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in…
  • …failed to open stream: no suitable wrapper could be found in…

 

Edit the php.ini and enable the following 2 settings.

allow_url_fopen = On
allow_url_include = On

 

Restart Apache and they should be fixed.

Done =)

Reference:


Filed under: PHP Tagged: Apache, PHP

Viewing all articles
Browse latest Browse all 16

Trending Articles