init.d scripts
David Kramer
david at thekramers.net
Mon Jan 30 12:52:45 EST 2006
On Mon, January 30, 2006 11:07 am, Ed Hill wrote:
> On Mon, 2006-01-30 at 10:59 -0500, David Kramer wrote:
>> On Mon, January 30, 2006 10:56 am, Ed Hill wrote:
>> > #!/usr/bin/env php
>> >
>> I thought of that. I can't really do that, because the script is also
>> web-accessible, and the shebang line would print out on the page.
>>
>> Making a one-line script to call it sounds like the best option at this
>> point.
>
> No, it won't. The php interpreter strips it. Go ahead, try it.
I did. It does. The PHP parser is only going to look at text in the PHP
tags. When I bring up a PHP page in my browser with
#!/usr/bin/env php
as the first line, that line appears in my browser.
Go ahead, try it.
More information about the Discuss
mailing list