Question

J'ai essayé une variété de combinaisons, ce qui suit étant ma dernière tentative:

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

Comment puis-je obtenir Apache 2.2.11 pour analyser des fichiers .wml en PHP?

Était-ce utile?

La solution

AddType application/x-httpd-php .wml

Si le travail. Je peux être possible (en cas de SuPHP ou paramètres de type MIME personnalisé) que la partie x-httpd-php est incorrect. S'il vous plaît vérifier votre configuration ce type MIME est effectivement utilisé pour PHP.

Autres conseils

Essayez:

AddType application/x-httpd-php5 .wml

spécifiant Explicitement est parfois nécessaire PHP5.

AddType ne fonctionne pas .. AddHandler doit être utilisé. essayez d'ajouter ce qui suit à apache conf:

  

AddHandler application / x-httpd-php .wml

il devrait fonctionner.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top