[PHP] confusion about the file extension for php interpreter to interpret

2010-11-13 Thread 肖晗
Apache defaultly use php interpreter to execute files ended with '.php'
extension.
How can I change this rule?Can I  change the default extension to any
arbitrary name? Such as .PHP or .Php and so on.
And I am using Ubuntu/Linux, Apache2 and php5.

Thanks very much!


Re: [PHP] confusion about the file extension for php interpreter to interpret

2010-11-13 Thread Sharl.Jimh.Tsin
you can use Apache configuration and mod_rewrite to get it, without no
changes on php.

Best regards,
Sharl.Jimh.Tsin (From China **Obviously Taiwan INCLUDED**)



2010/11/14 肖晗 xiaohan2...@gmail.com:
 Apache defaultly use php interpreter to execute files ended with '.php'
 extension.
 How can I change this rule?Can I  change the default extension to any
 arbitrary name? Such as .PHP or .Php and so on.
 And I am using Ubuntu/Linux, Apache2 and php5.

 Thanks very much!


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



Re: [PHP] confusion about the file extension for php interpreter to interpret

2010-11-13 Thread 惠新宸
Hi:

  add AddType application/x-httpd-php .Php into httpd.conf or any
other config file in apache/conf/extra

thanks

惠新宸 Xinchen Hui
http://www.laruence.com/

On 11/14/2010 13:29, 肖晗 wrote:
 Apache defaultly use php interpreter to execute files ended with '.php'
 extension.
 How can I change this rule?Can I  change the default extension to any
 arbitrary name? Such as .PHP or .Php and so on.
 And I am using Ubuntu/Linux, Apache2 and php5.
 
 Thanks very much!

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