I have Created a PHP File with Below Codes : <?php ini_set("allow_url_fopen", 1); if( ini_get('allow_url_fopen') ) { die('allow_url_fopen is enabled. file_get_contents should work well'); } else { die('allow_url_fopen is disabled. file_get_contents would not work'); } ?> I am still getting Below error : allow_url_fopen is disabled. file_get_contents would not work ---------------------------------------------------------------------- Let me know what Parameters should check ?
Most likely the host has disabled the ability to set flags directly in a php file. As already suggested, you'll need to edit php.ini or possibly a .htaccess directive to get it working.