Re: how to set user authority on WIN2000 Server

From: Date: Thu, 06 Jul 2000 00:47:09 +0000
Subject: Re: how to set user authority on WIN2000 Server
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-5124@lists.php.net to get a copy of this message
In article <200007051618.MAA17281@localhost.localdomain>, tiefeng@cacn.net (tiefeng) wrote: > I previously use php4.0RC1 under win2000+iis5.0, the system authority of the php scripts directory I set is like this: > Administrator & Services & System: full control > IUSER-SERVERNAME: read & run > My scripts carry out a session function, and I didn't use the session > functions of PHP4 (becuase it is not working properly under win2000), but I'm guessing the IUSER_SERVERNAME needs write access to where-ever the /tmp files are stored that PHP uses to store session data for sessions to work... This could be the source of PHP sessions not working on Win2K. >realized it by hand. It is like this: > Login in static page --> process login php script > the script does this: > check login valid > if (valid){ > setcookie("SESSIONID",$sessionvalue) > header("Location: someother.php3\n\n"); > } > if (error-occurs) include("displayerror.php3"); > It goes well until I switch the php to 4.0pl1, errors is like this: > sometimes it report that connot open 'displayerror.php3' file. > and sometime it seems has jump to 'someother.php3', but cookie is not set. You can't set a cookie and do a Location header in the same page reliably: Some browsers will work, some won't. > now I found that I must set the authrity of the C:\ to Everyone with full control, but I think it is very dangerous. I'd be very surprised if that has anything to do with include, setcookie, or header suddenly working. -- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)

« previous php.general (#5124) next »