Re: [PHP] Adding a single php file to .htaccess.

2008-08-25 Thread Dotan Cohen
2008/8/25 tedd <[EMAIL PROTECTED]>: > Dotan: > > This is what I use to force php to consider certain files: > > # handler for phpsuexec.. > > SetHandler application/x-httpd-php > > > I occasionally use php in css files and this works for that. > > My understanding is that you could change the Fi

Re: [PHP] Adding a single php file to .htaccess.

2008-08-25 Thread tedd
At 5:05 PM +0300 8/24/08, Dotan Cohen wrote: On one particular server, all *.html files are written in Python. I uploading a few PHP files to the directory, but they must also have .html extensions (they are replacing files that _were_ python, but it is rather important that the filename stay the

Re: [PHP] Adding a single php file to .htaccess.

2008-08-24 Thread Jochem Maas
Stut schreef: On 24 Aug 2008, at 16:30, Dotan Cohen wrote: 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

Re: [PHP] Adding a single php file to .htaccess.

2008-08-24 Thread Micah Gersten
You can replace the Python files with .html files that just have a redirect header in them. Then you can just have the php files as .php. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Dotan Cohen wrote: > On one particular server, all *.html files are writt

Re: [PHP] Adding a single php file to .htaccess.

2008-08-24 Thread Stut
On 24 Aug 2008, at 16:30, Dotan Cohen wrote: 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

Re: [PHP] Adding a single php file to .htaccess.

2008-08-24 Thread Stut
16:16:36 BST To: "Dotan Cohen" <[EMAIL PROTECTED]> Cc: php-general. Subject: Re: [PHP] Adding a single php file to .htaccess. On 24 Aug 2008, at 16:09, Dotan Cohen wrote: 2008/8/24 Stut <[EMAIL PROTECTED]>: If you use env then it should be pretty portable. The only other way

Re: [PHP] Adding a single php file to .htaccess.

2008-08-24 Thread Dotan Cohen
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

Re: [PHP] Adding a single php file to .htaccess.

2008-08-24 Thread Stut
On 24 Aug 2008, at 16:09, Dotan Cohen wrote: 2008/8/24 Stut <[EMAIL PROTECTED]>: If you use env then it should be pretty portable. The only other way to do it would be to specify each script individually Yes, this is what I want to do, specify each file individually. or with a regex No!!

Re: [PHP] Adding a single php file to .htaccess.

2008-08-24 Thread Dotan Cohen
2008/8/24 Stut <[EMAIL PROTECTED]>: > If you use env then it should be pretty portable. The only other way to do > it would be to specify each script individually Yes, this is what I want to do, specify each file individually. > or with a regex No!!! (then I'd have two problems :)) > if that's

Re: [PHP] Adding a single php file to .htaccess.

2008-08-24 Thread Stut
On 24 Aug 2008, at 15:39, Dotan Cohen wrote: 2008/8/24 Stut <[EMAIL PROTECTED]>: 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

Re: [PHP] Adding a single php file to .htaccess.

2008-08-24 Thread Dotan Cohen
2008/8/24 Stut <[EMAIL PROTECTED]>: > 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

Re: [PHP] Adding a single php file to .htaccess.

2008-08-24 Thread Stut
On 24 Aug 2008, at 15:05, Dotan Cohen wrote: On one particular server, all *.html files are written in Python. I uploading a few PHP files to the directory, but they must also have .html extensions (they are replacing files that _were_ python, but it is rather important that the filename stay the

[PHP] Adding a single php file to .htaccess.

2008-08-24 Thread Dotan Cohen
On one particular server, all *.html files are written in Python. I uploading a few PHP files to the directory, but they must also have .html extensions (they are replacing files that _were_ python, but it is rather important that the filename stay the same and I'd rather avoid rewrite). I figured