Re: changing settings in PHP.ini
- From: "J.O. Aho" <user@xxxxxxxxxxx>
- Date: Sat, 28 Oct 2006 16:44:31 +0200
Mike wrote:
I need to change a setting in the php.ini file but the host won't
change it.
A host won't just change the settings they have decided is best for them and most of the users.
I know I can put the following before the session_start()..
ini_set('session.use_cookies',0);
You can make an include file with ini_set() to change all the settings you want and then include that include file in all your scripts, will lessen the hassle for you if you have more settings you want to change.
but do I need to do this on every page or is once enough on say a login
page?
The setting affects only the script where you have the ini_set(), all other scripts are unaffected.
Also, I have read that you can add the following to a .htaccess file...
php_value session.use_cookies 0
This requires that the host has enabled the usage of htaccess, many hosts don't as this can lessen the security on the system.
//Aho
.
- References:
- changing settings in PHP.ini
- From: Mike
- changing settings in PHP.ini
- Prev by Date: Re: changing settings in PHP.ini
- Next by Date: Re: Please Help! - PHP 5 + APACHE 2.2 + ORACLE 10.2 on windows box
- Previous by thread: Re: changing settings in PHP.ini
- Index(es):
Relevant Pages
|