views:

150

answers:

3

I've tried a variety of combinations, the following being my last attempt:

Addtype text/vnd.wap.wml wml
Addtype image/vnd.wap.wbmp wbmp
AddType text/vnd.wap.wmlscript wmls
AddType application/vnd.wap.wmlc wmlc
AddType application/vnd.wap.wmlscriptc wmlsc

AddType application/x-httpd-php .wml

How can I get stupid Apache 2.2.11 to parse .wml files as PHP?

+2  A: 
AddType application/x-httpd-php .wml

Should work. I may be possible (in case of SuPHP or custom mime-type settings) that the x-httpd-php part is not correct. Please check your configuration what mimetype is actually used for PHP.

Frenck
I tried that. Doesn't work. What must I check for exactly?
RD
Ok. It works. I dont know why, or how it's different from what I did just now... but it works. Thank you!
RD
the AddType rule for .php files....
Frenck
Your welcome :)
Frenck
+2  A: 

Try:

AddType application/x-httpd-php5 .wml

Explicitly specifying PHP5 is sometimes required.

John Conde
A: 

AddType doesn't work .. AddHandler should be used . try adding the following to apache conf :

AddHandler application/x-httpd-php .wml

it should work , and apache is not stupid ;)

theneoindian