PHP script in .html file
Answered
We can use PHP script in a file with .html extension (for example index.html) by a simple modification in .htaccess file.
Therefore PHP support should be allowed in .html file and it should not display PHP script as error/bug. If someone do not like this feature, he should have option to deactivate this option in Settings.
Please sign in to leave a comment.
Hi there,
Just associate *.html pattern with "PHP File" in "Settings/Preferences | Editor | File Types".
Obviously, all such files will now be treated as PHP (will have PHP icon etc) and this is IDE-wide change (affects all projects).
Worked. Thank you.