Re: Execute permission question
| From: | Tedd Sperling | Date: | Thu, 27 Oct 2011 23:36:18 +0000 |
| Subject: | Re: Execute permission question | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-315469@lists.php.net to get a copy of this message | ||
On Oct 27, 2011, at 6:27 PM, Daniel Brown wrote:
> On Thu, Oct 27, 2011 at 18:15, Tedd Sperling <tedd.sperling@gmail.com> wrote:
>>
>> Ash:
>>
>> 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?"
>>
>> That question begged the question of "What does execute mean?"
>
> It means "execute." Not to be confused with what others are
> mentioning here, which is "read and interpret." If you run something
> through PHP, Perl, Python, or another parser/interpreter, it doesn't
> need to be executable by the user, only readable.
>
> A caveat to this, of course, is that some scripts (such as those
> run via CGI) will usually need to be executable. You may recall, back
> in the 90's, that any Perl scripts you'd upload to your cgi-bin needed
> to be chmod'd to 0755.
>
> --
> </Daniel P. Brown>
Thanks for the wayback machine ride -- my memory cells have long expunged that data for more useless
information.
Good point re comparison of "execute" vs "read and interpret" -- that will end
up in the minds of students to ponder.
Thanks,
tedd
_____________________
tedd@sperling.com
http://sperling.com