Re: session_save_path

From: Date: Wed, 06 Dec 2000 03:25:58 +0000
Subject: Re: session_save_path
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-28828@lists.php.net to get a copy of this message
> <? > session_save_path("D:\\cubanismo\\applicazioni\\sess_dir"); Just for fun, try using "/" instead of "\\"... There's just too many places where \\ can get messed up... > session_start(); > > -------------- > Warning: > open(D:\cubanismo\applicazioni\sess_dir\sess_67e53baaa13ca694637732de5249d07 > 9, O_RDWR) > failed: m (13) in D:\cubanismo\prova.php on line 3 m (13) ??? Hmmmmm. Is that an error code from DOS? Probably even less useful than a Un*x error code, but might be worth looking up... > Well, I'm sure the path is correct and I've the right permission to write on > that folder ... You are aware that PHP is running as IUSR_machinename rather than as you, the logged-in user, so IUSR_machinename needs read and write permission on that directory, and that the entire D: drive, if it's a network drive, must be mounted by IUSR_machinename, not by some other user that is logged in... In other words, what you can do to that folder is irrelevant -- PHP is not you. PHP is IUSR_machinename.

« previous php.general (#28828) next »