Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
273 views
in Technique[技术] by (71.8m points)

php - IIS handler for phtml files

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 :)

question from:https://stackoverflow.com/questions/66061252/iis-handler-for-phtml-files

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...