Re: changing settings in PHP.ini



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
.



Relevant Pages

  • SuSE 9.3 and DHCP
    ... This is not a problem report in that my system appears to be running fine. ... When installing SuSE 9.3 I leave the network settings to the default (set ... on the router, or even if the router is switched off. ... Are there any advantages to setting the host name manually to a more ...
    (alt.os.linux.suse)
  • Re: ADO.NET Secret of eternal youth
    ... Surely that would tell you the time on the host? ... your local time would tell you whether the settings are different. ... > The code on the server side is very simple. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Postfix problems
    ... and I have not changed the default host name settings. ... where you obviously change the mydomain ... except for root. ...
    (alt.os.linux.suse)
  • Re: KMail issue
    ... > Add (in the general settings) I madeup a name. ... > I skipped the send Host name as I don't use that in windows. ... Notice that the time stamp is on the left column, ... Try soft edges =at= soft home d0t net ...
    (alt.os.linux.suse)
  • Re: Access denied after connecting elsewhere
    ... the machines are using the same workgroup ... hooked into a corporate network in order to check his email. ... I checked all his settings, ... I get instant access to the share using the host machine's IP. ...
    (microsoft.public.windowsxp.security_admin)