Page 1 of 1
Sessions cause php to crash!
Posted: Thu Aug 22, 2002 11:55 am
by Data
Whenever I try to use sessions in my scripts php crashes:
php.exe has encountered a problem and needs to close. We are sorry for the inconvenience.
I tried a test script which contains only this:
Code: Select all
<?php
session_start();
?>
<html>
<body>
A test.
</body>
</html>
but it still crashes.
Anybody have any idea why this is?
did u reinstall php
Posted: Thu Aug 22, 2002 12:47 pm
by conthox
Did you try to install the latest version of PHP ?
What webserver are you running ?
Posted: Thu Aug 22, 2002 1:16 pm
by volka
is session.save_path in your php.ini valid an accessable with php's uid?
(only a guess - I don't know if this can cause such an error)
Posted: Thu Aug 22, 2002 1:26 pm
by Data
At the moment it is set to /tmp.
It says that windows users should change this - where should I change it to?
Posted: Thu Aug 22, 2002 1:33 pm
by volka
to any valid directory you want to.
I -for example- have
e:\
..-webserver
....-htdocs
....-upload.tmp
....-session.data
....-ftp
....- and so on
-> session.save_path = E:/webserver/sessions
Posted: Thu Aug 22, 2002 5:16 pm
by Data
Thanks for the help.
I ended up installing the newest version of PHP, and it seems to be working. Now I'll have to start using the $_GET[] etc and changing all my previous code!
Also, why is $PHP_SELF coming up as an undefined variable?
Posted: Thu Aug 22, 2002 7:18 pm
by volka
it also 'went' into an array
$_SERVER['PHP_SELF']
but you still have the possibility to set register_globals to On.
Posted: Fri Aug 23, 2002 2:45 am
by Data
Ah, thanks!