You are here: Strange MIME problem with AddHandler « PHP Programming Language « IT news, forums, messages
Strange MIME problem with AddHandler

Posted by robb on 03/30/06 23:06

Hi all,

I'm using Apache with php, and attempting to have an HTML file parsed
as php. It's a legacy page with a high PageRank, and the client wants
it kept around.

I did the "standard" thing ... created a .htaccess file with the line:

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

This does have an effect, so I know the htaccess file is found and
interpreted. However, what I see happen with a page is: The browser
opens the "don't know how to handle this type" dialog asking whether
the file should be saved, or an app started to handle it, etc.

This implies to me that the mime type *has* been changed, however, the
php parser is still not given a chance to interpret it. Has anyone
seen this before? Thanks,

Robert

 

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

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