Re: Execute permission question

From: Date: Fri, 28 Oct 2011 15:00:29 +0000
Subject: Re: Execute permission question
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-315492@lists.php.net to get a copy of this message
On Oct 28, 2011, at 7:19 AM, Geoff Shang wrote: > On Thu, 27 Oct 2011, Tedd Sperling wrote: > >> You answered a question I wasn't prepared to ask, which was "How can php scripts >> be executed when their execute permissions aren't set?" > > Because as far as the system is concerned, the thing which is being executed is either PHP > itself or something in which PHP is being run (e.g. Apache). The fact that PHP then loads a script > and executes it is not really the point. > > When used in websites, it's the webserver itself which loads the PHP interpreter which in > turn loads the script. > > So the webserver needs to be executable. The Apache module, for example, does not because > Apache loads it into Apache which is already running. > > If you're not actually running programs on the host itself via a shell, then you probably > won't need execute permissions most of the time. > > Geoff. Geoff: Thanks -- this is one of those things that normally "goes without saying" but by doing so remains a question to some. Cheers, tedd _____________________ tedd@sperling.com http://sperling.com

« previous php.general (#315492) next »