How to test allow_url_fopen is enabled?

allow_url_fopen option enables the URL-aware fopen wrappers that enable accessing URL object like files.

This option can be enabled or disabled from php.ini.

Without this option enabled, PHP can not acces URLs (files) placed on other servers.

To test weather allow_url_fopen is enabled on your site, you can do any of these:

  1. view php.ini file and search for allow_url_fopen.
  2. create a simple php file with this line of code:
    <?
    echo ini_get('allow_url_fopen');
    ?>
    

Commercial Scripts

Free Scripts

Products Sites

Ads