prakash Posted July 10, 2007 Share Posted July 10, 2007 I have tried overriding the master value for allow_url_include and allow_url_fopen locally from .htaccess other overriding value like registry_globals etc were working fine but allow_url_include and allow_url_fopen doesn't works. I have tried same in PHP 5.2.2 and 5.1.6 but it's not working on both. Please let me know how to fix it or which version to downgrade to support it. Please kindly request to reply ASAP, it's little bit urgent for me. Thanks in advance Quote Link to comment Share on other sites More sharing options...
trq Posted July 10, 2007 Share Posted July 10, 2007 These values can only be changed within the main php.ini. Nothing you can do except find a host that supports them. Quote Link to comment Share on other sites More sharing options...
prakash Posted July 10, 2007 Author Share Posted July 10, 2007 These values can only be changed within the main php.ini. Nothing you can do except find a host that supports them. Actually I need those value to be set 'on' for some a/c and 'off' for some so if i set the value from php.ini it will be applied as global. so instead of that I need to override those values from .htaccess and this is currently not supporting on PHP 5.2.2 any help? Quote Link to comment Share on other sites More sharing options...
per1os Posted July 10, 2007 Share Posted July 10, 2007 These values can only be changed within the main php.ini. Nothing you can do except find a host that supports them. Actually I need those value to be set 'on' for some a/c and 'off' for some so if i set the value from php.ini it will be applied as global. so instead of that I need to override those values from .htaccess and this is currently not supporting on PHP 5.2.2 any help? In order to override apache or php needs to allow the init_set override or the .htaccess override. Most hosts (if shared) disable that so people cannot change the settings. Quote Link to comment Share on other sites More sharing options...
prakash Posted July 10, 2007 Author Share Posted July 10, 2007 These values can only be changed within the main php.ini. Nothing you can do except find a host that supports them. Actually I need those value to be set 'on' for some a/c and 'off' for some so if i set the value from php.ini it will be applied as global. so instead of that I need to override those values from .htaccess and this is currently not supporting on PHP 5.2.2 any help? In order to override apache or php needs to allow the init_set override or the .htaccess override. Most hosts (if shared) disable that so people cannot change the settings. actually I have my own server and currently enabled .htaccess overriding everything works (eg. registry_globals overriding etc) but allow_url_include and allow_url_fopen is not overriding it's master value. Quote Link to comment Share on other sites More sharing options...
per1os Posted July 10, 2007 Share Posted July 10, 2007 Did you try www.php.net/init_set in the php file to see if that would work? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.