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.
Thanks -- this is one of those things that normally "goes without saying" but
by doing so remains a question to some.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php