Well there you have it, I've inherited another can of worms, a site on a
web hosting service (XO.com) running PHP in cgi mode (shades of the dark
ages,eh?). I guess I can comment and uncomment the directive based on
which OS but a pain in the derriere. Would be cool to have a script to
automate that. Maybe I'll have to dust off my Rebol.
Thanks for the comments.
Michael
In article <pan.2003.09.17.21.42.03.243595@hybris.digiserv.ne t>,
ian@WINDOZEdigiserv.net says...[color=blue]
> On Wed, 17 Sep 2003 17:43:01 -0400, Jon Trelfa wrote:
>[color=green]
> > a shebang is only required in Perl scripts from my experience.[/color]
>
>
> Nope.. if you write a PHP cmdline script, you need to include a shebang
> line, unless of course, you exec it as: 'php foo.php'.
>
> Sounds like the hosting server is running PHP in CGI mode rather than as a
> module, hence the requirement of the shebang line as this is then
> interpreted in the same way a Perl script is.
>
>
>
> Regards,
>
> Ian
>
>[/color]