Where I find the PHP.INI file
Moderator: General Moderators
Where I find the PHP.INI file
While working with sessions I want to increase the session lifetime on server.
But I cannot got the configuration file.
Is anybody know where I can go and find the file on server.
Thanks in advance
But I cannot got the configuration file.
Is anybody know where I can go and find the file on server.
Thanks in advance
-
jeffery
- Forum Contributor
- Posts: 105
- Joined: Mon Apr 03, 2006 3:13 am
- Location: Melbourne, Australia
- Contact:
make a script, call it info.php with the following contents:
Load that page in your browser through the webserver. you should see your PHP configuration as the output. Look for the location of php.ini in that page output.
Code: Select all
<?php phpinfo();?>-
jeffery
- Forum Contributor
- Posts: 105
- Joined: Mon Apr 03, 2006 3:13 am
- Location: Melbourne, Australia
- Contact:
you can write your own custom session handler. http://php.net/manual/en/function.sessi ... andler.php
.htaccessvinoth wrote:so what can I Do?
Any alternative way to DO?
Code: Select all
php_value name valueCode: Select all
php_value register_globals 0
php_value magic_quotes_gpc 0Code: Select all
php_value register_globals 0
php_value magic_quotes_gpc 0It extends the session timeout?
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Those values and more are explained on the manual's ini pages...
http://php.net/ini.core for starters.
http://php.net/ini.core for starters.