Hi all, I can not embed php tag within .html extension.
How can I enable it, will it cause by my editor setting( Aptana Studio ) ?
Thanks a lot for provide me the solution.
Altrea wrote:Hi chandecweng,
.html files will not be sent through the php parser, that's the reason.
If you want to get php blocks in .html files parsed (which i wouldn't recommend, because there is no good reason for this and the disadvantage will be that even plain html files without php blocks have to go through the php parser unnecessarily), your Apache has to know this.
The setting for this is in your \xampp\apache\conf\extra\httpd-xampp.conf (change lines 20 and 43).
<FilesMatch "\.(php|html)$">
Users browsing this forum: No registered users and 141 guests