I did not find many results online for this one, surprisingly. I have a local PHP project containing different types of files. PHTML files do not seem to be parsed correctly by IIS. The type phtml is not listed in the module mappings in IIS. I tried to add *.phtml with php-cgi.exe and then php.exe to the handlers/module mappings, to no avail.
Anything I am missing there? Also, isn't that supposed to be automatically done when installing PHP? This is the first time I have this problem, but it seems obvious I did something differently this time :)
The problem was obviously between the chair and the monitor. I forgot to set short_open_tag = On, in the php.ini file. The short tags were used mostly in our phtml files, leading me to think it was a filetype issue.
short_open_tag = On
2.1m questions
2.1m answers
60 comments
57.0k users