XHTML not workin

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
asela_05085
Forum Newbie
Posts: 16
Joined: Mon Aug 31, 2009 10:33 pm

XHTML not workin

Post by asela_05085 »

hi,

recently i was able to disable PHP in some folders by adding below lines in httpd.conf file

<Directory "/var/www/html/wap/xhtml">
php_admin_flag engine off
</Directory>

now i'm facing new problem.
when i access xhtml files in the PHP disabled folders, instead of loading the page it downloads
so in some browsers get the error as cannot download this file

what can i do to avoid this and enable xhtml in those folders

pls help
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: XHTML not workin

Post by Darhazer »

Probably the handler for .html is php
You should change the handler. Of if the XHTML pages are with .php extension - change the extension...
asela_05085
Forum Newbie
Posts: 16
Joined: Mon Aug 31, 2009 10:33 pm

Re: XHTML not workin

Post by asela_05085 »

i have sorted the below issue by adding the below line in httpd.conf folder
AddType application/xhtml+xml .xhtml

:D
Post Reply