Can we set "allow_url_fopen" "ON" by using the ini_set() function in php [duplicate] Can we set "allow_url_fopen" "ON" by using the ini_set() function in php [duplicate] php php

Can we set "allow_url_fopen" "ON" by using the ini_set() function in php [duplicate]


you can't, "allow_url_fopen" has the changable mode PHP_INI_SYSTEM

Entry can be set in php.ini or httpd.conf

and not by ini_set()

http://www.php.net/manual/en/configuration.changes.modes.php


You can't

allow_url_fopen can only be modified from an ini file or httpd.conf.


The allow_url_fopen directive belongs to PHP_INI_SYSTEM and cannot be set via ini_set()