2008/8/24 Stut <[EMAIL PROTECTED]>: > I'm confused. A #! line does not harm the portability of a PHP script in any > way whatsoever, and if you use the env version rather than an absolute path > then it should work out of the box on 99% of Linux servers and will also > work everywhere else because that line will be ignored by the PHP > interpreter. > > In what way do you think it harms the portability of the PHP file itself? >
Because I have a few other files that do not have the shebang line that I will likely need to put on that server in the future, and I did not want to have to remember to add the shebang line for each one. However, the flaw in my thinking is that I would in any case have to add the line to .htaccess for each file, which means SSHing in instead of FTPing. So the shebang line is in fact best! In any case, I would still like to know what line to add to .htaccess to have it parse a specific file as php. But it is no longer critical for this project because I will use the shebang line. Thanks! -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü