[thelist] php session_start() function
Max Schwanekamp
lists at neptunewebworks.com
Sun Apr 9 14:03:39 CDT 2006
Santilal Parbhu wrote:
> I have had another reply suggesting the same thing. What should the setting
> be for session.save_handler. Is "files" OK.
That is what it should be in most cases. Probably best to override it
in the apps that use another storage engine for session data. E.g. an
app that stores session data in a database would call
session_set_save_handler() (or the equivalent using ini_set()) to set
this differently.
The important thing is that when running php on Windows, this should be
a valid windows path, e.g. C:\tmp and that directory must exist and be
writeable.
Santilal Parbhu also wrote:
> I can't seem to be able to
> change the php.ini file. I have searched for php.ini and I came up with
> three hits.
Run php_info() and look at the top block for the correct file. E.g. on
my dev machine php_info() gives this:
Configuration File (php.ini) Path C:\php\php.ini
You'll find lots of other useful info in the output from php_info().
N.B. Don't expose php_info() output to the open web!
A few other important settings that need valid windows paths:
extensions_dir
include_path
upload_tmp_dir
If this at all baffling, consider using WAMP[0] or XAMPP[1]. Your life
will be much simpler.
[0] http://www.en.wampserver.com/
[1] http://www.apachefriends.org/en/xampp.html
--
Max Schwanekamp
http://www.neptunewebworks.com/
More information about the thelist
mailing list