1

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?

rockstardev
  • 13,479
  • 39
  • 164
  • 296

3 Answers3

3
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.

Nathan Campos
  • 28,769
  • 59
  • 194
  • 300
Frenck
  • 135
  • 1
  • 1
  • 7
2

Try:

AddType application/x-httpd-php5 .wml

Explicitly specifying PHP5 is sometimes required.

John Conde
  • 217,595
  • 99
  • 455
  • 496
1

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

AddHandler application/x-httpd-php .wml

it should work.

hari_sree
  • 1,508
  • 3
  • 12
  • 24