Highlighted

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

Community Beginner ,
Nov 16, 2018

Copy link to clipboard

Copied

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

error php dreamweaver.png

Adobe Community Professional
Correct answer by Jon Fritz II | Adobe Community Professional

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.

TOPICS
Error, Product issue

Views

4.2K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

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

Community Beginner ,
Nov 16, 2018

Copy link to clipboard

Copied

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

error php dreamweaver.png

Adobe Community Professional
Correct answer by Jon Fritz II | Adobe Community Professional

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.

TOPICS
Error, Product issue

Views

4.2K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Nov 16, 2018 0
Adobe Community Professional ,
Nov 16, 2018

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 16, 2018 0
Community Beginner ,
Nov 16, 2018

Copy link to clipboard

Copied

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>

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 16, 2018 0
Adobe Community Professional ,
Nov 16, 2018

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 16, 2018 1
Community Beginner ,
Nov 16, 2018

Copy link to clipboard

Copied

oh ok, I will check that, thank you both for your help!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 16, 2018 0
Adobe Community Professional ,
Nov 16, 2018

Copy link to clipboard

Copied

I think that this is the culprit


Ben

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 16, 2018 1
Community Beginner ,
Nov 16, 2018

Copy link to clipboard

Copied

Why? Can you explain me please?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 16, 2018 0
Adobe Community Professional ,
Nov 16, 2018

Copy link to clipboard

Copied

Good eye.

@juanf29622012,

If you save as .php it'll stop telling you that you have an error there. DW doesn't run the Linter in .php files (the reason for the highlighted line error).

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 16, 2018 1