arn_php Posted February 25, 2008 Share Posted February 25, 2008 How do i override the setting of php config file (php.ini) from within the script. I mean, I do not have the access to php config file and I am thinking if I can just put/add something into my _init.php or my config.php file that would override the php config file - then it would be wonderful. any idea? Quote Link to comment Share on other sites More sharing options...
trq Posted February 25, 2008 Share Posted February 25, 2008 ini_set(). Quote Link to comment Share on other sites More sharing options...
arn_php Posted February 25, 2008 Author Share Posted February 25, 2008 What it means ini_set()? Such as ini_set(register_globals ON)? Put it into _init.php or config.php? More explanation please. Quote Link to comment Share on other sites More sharing options...
aschk Posted February 25, 2008 Share Posted February 25, 2008 I hope you're not planning on putting REGISTER GLOBALS on! If you are, slap yourself in the face. On a more serious note : There are certain settings you can't override in your PHP scripts and I believe register globals might be one of them. You may however be able to override this in your Apache config though. Quote Link to comment Share on other sites More sharing options...
arn_php Posted February 25, 2008 Author Share Posted February 25, 2008 I do not have access to apache config, that's why I am asking about this. Quote Link to comment Share on other sites More sharing options...
aschk Posted February 25, 2008 Share Posted February 25, 2008 What settings are you planning on changing and i'll tell you if then can be changed using ini_set() or a .htaccess override. Quote Link to comment Share on other sites More sharing options...
arn_php Posted February 25, 2008 Author Share Posted February 25, 2008 http://www.phpfreaks.com/forums/index.php/topic,184042.msg823332.html#msg823332 http://www.phpfreaks.com/forums/index.php/topic,180680.15.html Read those 2 posts. I have been having trouble with my custom php CMS and needs to have the register_globals ON and error_reporting lower to a certainpoint. Will it be possible? 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.