Click to See Complete Forum and Search --> : SHEBANG LINE IN BROWSER


Anon
09-25-2001, 05:56 AM
I put the shebang line

#!C:/PHP/php.exe

at the top of my script - PHP/CGI Mode, WIN98, Apache.

Now this line is shown at the top of my pages in the browser.

Thank you!

Thomas

mithril
09-25-2001, 07:26 AM
Thomas,

You don't need to specify the executable path in the scipt header, that's taken care of in your httpd.conf. The only instance I'm aware of where you need to use the shebang line is if you're using PHP as a shell scripting language (ie. runnigng from the command prompt to acheive some sorta result on the machine it executes on). Even then, I'm not sure if you need to specify the shebang on a Win32 box.... I'm thinking it's only needed for *Nix. HTH.

geoff