You are here: Re: setting Apache up to process an extension as PHP « PHP Programming Language « IT news, forums, messages
Re: setting Apache up to process an extension as PHP

Posted by Johnny on 11/15/05 19:28

In article <1132073741.440535.225030@g43g2000cwa.googlegroups.com>,
news@celticbear.com says...
>
>OK, found this line in httpd.conf:
>TypesConfig /etc/mime.types
>
>In that file is a huge list of file types. A search turned up no
>reference to "php" however.
>Just to test things, I tried inserting:
>
># PHP
>application/x-httpd-php bkk
>application/x-httpd-php htm
>application/x-httpd-php html
>
>but that didn't change anything.
>I think I'm on the right track, this is probably where I need to add
>whatever I need to add, but maybe I have the "application/x-httpd-php"
>part wrong.
>
>Can't seem to find any hits searching for mime.types and php though.
>
>Any suggestions?
>Thanks!
>Liam
>


I though you needed the "." before the file extension, maybe like this?..

AddType application/x-httpd-php .php .html .bkk .htm

I'm not sure if you can stack them like you had in your example. I think the
syntax for "AddType" is a space delimited list of extensions.


Johnny
--
Basic Newsguy - 3 GB / month - $39.95 / year
http://newsguy.com/overview.htm

 

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

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