You are here: Re: changing settings in PHP.ini « All PHP « IT news, forums, messages
Re: changing settings in PHP.ini

Posted by J.O. Aho on 10/28/06 14:44

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация