Copy link to clipboard
Copied
Hello,
I get a closing tag error ">" when i insert php into html;
<html>
<?php
?>
</html>
I was referred to the forum by Nishtha in customer support chat
1 Correct answer
Save your PHP coded files with the .php extension.
NOTE: You will need a local testing server set-up & defined in DW.
Go to View > Live Code.
Use Live Document Validation. See screenshot.
Copy link to clipboard
Copied
which DW build ?
Copy link to clipboard
Copied
dogooder wrote
Hello,
I get a closing tag error ">" when i insert php into html;
<html>
<?php
?>
</html>
I was referred to the forum by Nishtha in customer support chat
You will get an error as the validator inside DW or any other editor for that matter doesn't like raw php being inserted into html code. If you run the complied page through the W3c validator your page should pass, without any errors.
Copy link to clipboard
Copied
Does the page have a .html or .php file extension?
The Linter in DW will give the "special characters must be escaped" error if the file has a .html extension and has a php include.
It will not show any error on a .php file.
Copy link to clipboard
Copied
Save your PHP coded files with the .php extension.
NOTE: You will need a local testing server set-up & defined in DW.
Go to View > Live Code.
Use Live Document Validation. See screenshot.

