the PHP version i am running is php 4.4.4
planning to upgrade to php 5.2.1 soon. but I want to see it working on 4.4.4 first.
There are several things I wanted to ensure meets the requirements.
i am adding a new file at the begining of each php page. and in it. is
the following
<?php
ini_set("session.bug_compa
ini_set("session.bug_compa
ini_set("register_globals"
ini_set("error_reporting",
?>
maybe I should take out the " ? What about error_reporting? should I keep it as it is or is there a numerical value that could represent this instead?
Main Topics
Browse All Topics





by: CraigHarrisPosted on 2007-05-01 at 14:50:43ID: 19011977
You should be able to use ini_set to change the value of session.bug_compat_42 for the current script
and http://www.php.net/ini_set
t_42', 0); // put this at start of every script affected
Or just change it in the actual php.ini file manually.
(Note that ini_set doesn't modify the actual ini file)
What are you actually trying to set which isn't working?
You should check http://www.php.net/session
for further details
If you post your actual code here and tell us what version of PHP you are running and what platform it's on.
If it's just that session bug issue that's a problem, then you should be able to solve it with any of these 3 methods:
ini_set('session.bug_compa
or, just modify the php.ini file with:
session.bug_compat_42 = off
or, to just modify it for part fo a site without editing every script you can easily add a .htaccess file containing:
php_flag session.bug_compat_42 off
(and if it's more than just the session bug, then repeat the applicable line changing the setting name as applicable)