Just copied all my php scripts to my new WinXP Home PC running Xitami as the web server. Previously I was developing under Win2000 Pro/IIS and deploying on RedHat/Apache (don't ask!)
Now, sessions don't seem to work under Xitami in the same way as the other platforms. For example, I get the following error:
Undefined index: user
Whenever accessing a page that has the following code at the specified line:
$currentUser = $_SESSION["user"];
Now, in this case the session has not been set, but under the other platforms $currentUser would therefore be "false" and I check for this later.
Second and more worrying:
I don't seem to be able to perform redirection to relative paths. ie:
header("location:login.php"); //does not work
header("http://localhost/login.php"); //does work
The former works fine on my IIS and Apache systems.
Full spec:
WinXp Home SR-1
PHP 4.3.2
Xitami 2.5b5 (Service)
MySQL 4.01 (should be irrelevant)
Please help as I'm tearing my hair out here and my wife would prefer me not to go bald just yet!