GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   PHP problem with ini_set.....help please =) (https://gfy.com/showthread.php?t=379570)

Varius 10-29-2004 03:40 PM

PHP problem with ini_set.....help please =)
 
I have these lines in my page:

ini_set('session.name','z');
ini_set('session.use_cookies',0);
ini_set('session.gc_maxlifetime',3600);
ini_set('session.gc_probability',100);
ini_set('session.use_trans_sid',1);

and if I show phpinfo, they are all reflected in the 'Local' values except the use_trans_sid....I've tried it as 1, true, 'On',....but it remains set to value 'off' in phpinfo ???

Anyone have any ideas how to resolve this issue? PHP version 4.3.8 running on FreeBSD 4.10

M_M 10-29-2004 03:44 PM

just change it in php.ini

swedguy 10-29-2004 03:46 PM

http://bugs.php.net/bug.php?id=28991

session.use_trans_sid is PHP_INI_DIR for PHP 4 and PHP_INI_ALL for PHP 5.

Varius 10-29-2004 03:49 PM

Ooooops silly me this page was on a new demo server that had been compiled without enableing trans sid :)

As for the suggestion to edit it in php.ini, I prefer not touching my php.ini as different projects have diff settings requirements and I'd also have to change it on 15 webservers......

I think once I recompile PHP to enable it, should work fine

swedguy 10-29-2004 03:51 PM

No, you can only set that particular var with ini_set from version 5, it doesn't work in 4.

Varius 10-29-2004 03:53 PM

Quote:

Originally posted by Varius
Ooooops silly me this page was on a new demo server that had been compiled without enableing trans sid :)

As for the suggestion to edit it in php.ini, I prefer not touching my php.ini as different projects have diff settings requirements and I'd also have to change it on 15 webservers......

I think once I recompile PHP to enable it, should work fine

Scratch this, after 4.1.2 you dont have to compile with enable-trans-sid, its done automatically ;/

Varius 10-29-2004 03:53 PM

Quote:

Originally posted by swedguy
No, you can only set that particular var with ini_set from version 5, it doesn't work in 4.
Works on another server fine, I just tested with exactly the same OS and PHP version, and using those same ini_set lines...

strange

Intrigue 10-29-2004 04:26 PM

more often then not it's easier to use a .htaccess to set php settings (it's always good when things like register globals, session settings, etc.. are configured BEFORE the page is being executed)

php_flag <name> <value> for boolean
and php_value <name> <value> for others


All times are GMT -7. The time now is 09:56 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123