[resolved] debugging php in .html files? |
Site Admin
|
It's a common mistake. If your .html files contain php, they are not html at all, but php. Please adjust File Associations: remove *.html from the list for HTML and add it to the appropriate line (either PHP4 or PHP5 depending on the php version you work with)
|
||||||||||||
_________________ The PHP IDE team |
Veteran
|
When a file has an extension .html, the server will typically not parse the PHP code. In other words, everything is seen as HMTL.
Doing the reverse is fine though. You can have a .php file that contains HTML. It may even contain HTML only with no PHP at all. |
||||||||||||
_________________ |
Guru master
|
It is a piece of cake to define .html as a filetype to be parsed with php. In fact you can pretty much make up any extension you want, just updating the webserver config is enough.
So it is possible that html files contain php code. (In fact I have done so myself several times already to hide that php is being used ) |
||||||||||||
|
Veteran
|
|
||||||||||||||
_________________ |
|
thxs guys, worked like a charm.
phped is the best. - mark |
||||||||||||
|
[resolved] debugging php in .html files? |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by