This is a question about PHP configuration on a LAMP server.
I want to turn off
allow_url_fopen on one virtual host but not the other (i.e. can't turn it off globally in php.ini). The other day I had the same requirement but with
register_globals and it was easy, I just added the following to the .htaccess file in the
DOCUMENT_ROOT of the virtual host:
php_flag register_globals 0
But the same doesn't seem to work for
allow_url_fopen. If I add
php_flag allow_url_fopen 0
to my .htaccess nothing happens phpinfo() shows
local value On,
global value On.
What am I doing wrong?
PS: I restarted Apache after modifying the .htaccess file.