Skip to main content
Participant
Nov 16, 2018 4:27 PM UTC
Answered

Error Special characters must be escaped: [ < ] php on Dreamweaver

Hello,

I am trying to use php on dreamweaver, but I couldn't because all the time dreamweaver shows me that error.

I would really appreciate any help you can give me

This topic is closed to new replies. Start a new post to keep the conversation going.
Jon Fritz
Jon FritzCorrect answer
Community Expert
Nov 16, 2018 4:55 PM UTC

DW doesn't know that you have your server set to run php code in your .html pages, so it's trying to Lint the code as HTML.

If you don't have your server set to parse php code in .html pages, your code won't work until you save the file as .php.

Since <?php ?> isn't technically a valid HTML tag as far as the Linter knows, it's flagging it as wrong.

Save your page as .php and it goes away.

7 replies

BenPleysier
Community Expert
Community Expert
Nov 16, 2018 4:32 PM UTC

I think that this is the culprit

Translate
Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Participant
Nov 16, 2018 4:48 PM UTC

Why? Can you explain me please?

Translate
Jon Fritz
Community Expert
Community Expert
Nov 16, 2018 4:30 PM UTC

What character is under the pop up?

Could you post the entire code?

That error typically means you're missing something before the highlighted line.

Translate
Participant
Nov 16, 2018 4:47 PM UTC

I thought that, but I tried to included php coding on a new html document and the error continues

Code:

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>ejemplo</title>

</head>

<body>

<?php ?>

</body>

</html>

Translate
Jon Fritz
Community Expert
Jon FritzCommunity ExpertCorrect answer
Community Expert
Nov 16, 2018 4:55 PM UTC

DW doesn't know that you have your server set to run php code in your .html pages, so it's trying to Lint the code as HTML.

If you don't have your server set to parse php code in .html pages, your code won't work until you save the file as .php.

Since <?php ?> isn't technically a valid HTML tag as far as the Linter knows, it's flagging it as wrong.

Save your page as .php and it goes away.

Translate