Re: Adding a single php file to .htaccess.

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

 



On 24 Aug 2008, at 15:39, Dotan Cohen wrote:
2008/8/24 Stut <stuttle@xxxxxxxxx>:
In theory all you need to do is add a hash-bang line to the start of the PHP
scripts. This should work...

#!/usr/bin/env php


Thanks, that's what I am doing right now. I was hoping to avoid that
for portability, but if it is unavoidable then I can live with it.
Thanks!

If you use env then it should be pretty portable. The only other way to do it would be to specify each script individually or with a regex if that's possible in httpd.conf or .htaccess using a Files section to tell Apache to execute it with PHP. I don't see that as any more portable.

-Stut

--
http://stut.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux