Jump to content

override the php.in config file


arn_php

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/92851-override-the-phpin-config-file/
Share on other sites

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.

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.