start_session() problem |
|
Hi ddmitrie and gang,
I managed to figure it out! I am on a Windows machine and a line in php.ini file needed to be changed to reflect the location of the temporary directory on my machine: The following line...
needed to be changed to...
' Elliot |
||||||||||||||||
|
Site Admin
|
you're right.
btw, do you run php shipped with phped ? I remember we fixed this problem. The default php.ini contains wrong setting and we have corrected it, at least should be in phped 3.2 update pack #1. |
||||||||||||
|
|
Yup, I haven't installed the update pack yet. I have been having problems with my login, so I haven't been able to download it, but I just got an email from Jay Park stating that the problem is fixed. So, I will download and install it today.
|
||||||||||||
|
Site Admin
|
session_start() can't be called from a freely selected location. Take a look at the php documentation for the details.
|
||||||||||||
|
Re: I get the same errors |
|
You are looking at the wrong php.ini because the php you are using is looking for C:\Program Files\nusphere\phpED\php\sessions (which doesn't exist), not C:\Program Files\nusphere\apache\logs\sessions (which exists) |
||||||||||||||
|
Site Admin
|
if you use TechPlatform take a look at
if you run SRV server you should take a look in
then make sure that the directory specified as session.save_path exists. |
||||||||||||||||
Last edited by dmitri on Sun Jan 11, 2004 3:16 pm; edited 1 time in total |
|
it seems he/she is looking at TP's php.ini while actually using SRV's php.ini. so probably he/she should use TP's apache server as server or continue to use SRV and create the "sessions" folder in C:\Program Files\nusphere\phpED\php
|
||||||||||||
|
Solved |
|
so when I delved deeper I was looking at the wrong php.ini file - I was looking under apache and not phped. I still had to manually add the sessions directory however.
Perhaps this was caused by my confusion about the apache server - I have it installed as a service and automatically running. Is this necessary for debugging or does the debugger start up an instance by itself when invoked? Is this why there is a separate php.ini in the phped directory? |
||||||||||||
|
start_session() problem |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by