Question

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 Apache 2.2.11 to parse .wml files as PHP?

Was it helpful?

Solution

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.

OTHER TIPS

Try:

AddType application/x-httpd-php5 .wml

Explicitly specifying PHP5 is sometimes required.

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

AddHandler application/x-httpd-php .wml

it should work.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top