associate .php file with php

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



The other solution is to use the 'wine solution' which runs dos exe's 
through wine based on extension.
It has something to do with setting up misc binary support.
I can't remember exactly how it's done but you basically load some special 
kernel module (binfmt_misc I think) and then echo a proper line 
(containing .php extension information and /usr/bin/php executer + some 
other misc info) into the proper place in the /proc file system hierarchy. 
It should be documented somewhere in the kernel docs.

Cheers,
MaZe.

On Mon, 22 Aug 2005, David Thompson wrote:

> "Jeff Stacey" wrote:
>> put
>>
>> #!/usr/bin/php
>>
>> at the top of your php script.
>
> ...and be sure the file is executable (mode 755 or similar).
>
> Dave Thompson
>
>
>
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
>

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux