You are here: Re: how to use the PHP path to send something explicitly to the PHP parser? « PHP Programming Language « IT news, forums, messages
Re: how to use the PHP path to send something explicitly to the PHP parser?

Posted by Justin Koivisto on 11/02/05 16:50

lkrubner@geocities.com wrote:
> Justin Koivisto wrote:
>
>>.htaccess:
>>-----------
>># Send all .html files through the php interpreter
>>AddType application/x-httpd-php .html
>>
>>
>># mod rewrite to rewrite article/2005-10-03.html
>># to article/view.php?date=2005-10-03 without
>># changing any links in the site
>>RewriteEngine On
>>RewriteRule ^article/([^.]+)\.html$ article/view.php?date=$1 [L]
>>-----------
>
> Thanks much for the reply. I take that this line:
>
> AddType application/x-httpd-php .html
>
> can be read as something like "add the html type to the php
> application"??? What does "x-httpd-php" mean?

That line tells apache to treat all the .html files as the
"application/x-httpd-php" - which is where .php files are also sent.
x-httpd-php is the PHP interpreter...

--
Justin Koivisto, ZCE - justin@koivi.com
http://koivi.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация