Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

init.d scripts



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.




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org