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.


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to