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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-29-2004, 03:40 PM   #1
Varius
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
Varius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2004, 03:44 PM   #2
M_M
Confirmed User
 
Join Date: May 2004
Posts: 1,167
just change it in php.ini
__________________
;-)!;-)!;-)!;-)!;-)!;-)!;-)!;-)!;-)!;-)!;-)
M_M is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2004, 03:46 PM   #3
swedguy
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.
swedguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2004, 03:49 PM   #4
Varius
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
Varius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2004, 03:51 PM   #5
swedguy
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.
swedguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2004, 03:53 PM   #6
Varius
Confirmed User
 
Industry Role:
Join Date: Jun 2004
Location: New York, NY
Posts: 6,890
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 ;/
__________________
Skype variuscr - Email varius AT gmail
Varius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2004, 03:53 PM   #7
Varius
Confirmed User
 
Industry Role:
Join Date: Jun 2004
Location: New York, NY
Posts: 6,890
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
__________________
Skype variuscr - Email varius AT gmail
Varius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2004, 04:26 PM   #8
Intrigue
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
Intrigue is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.