![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Jun 2004
Location: New York, NY
Posts: 6,890
|
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
__________________
Skype variuscr - Email varius AT gmail |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: May 2004
Posts: 1,167
|
just change it in php.ini
__________________
;-)!;-)!;-)!;-)!;-)!;-)!;-)!;-)!;-)!;-)!;-) |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Jan 2002
Posts: 7,981
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Jun 2004
Location: New York, NY
Posts: 6,890
|
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
__________________
Skype variuscr - Email varius AT gmail |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Jan 2002
Posts: 7,981
|
No, you can only set that particular var with ini_set from version 5, it doesn't work in 4.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Industry Role:
Join Date: Jun 2004
Location: New York, NY
Posts: 6,890
|
Quote:
__________________
Skype variuscr - Email varius AT gmail |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Industry Role:
Join Date: Jun 2004
Location: New York, NY
Posts: 6,890
|
Quote:
strange
__________________
Skype variuscr - Email varius AT gmail |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Feb 2004
Location: Ohio, US
Posts: 662
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |