Highlighted

Php error in Html Dreamweaver

New Here ,
Oct 17, 2017

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

Adobe Community Professional
Correct answer by Nancy OShea | Adobe Community Professional

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.

TOPICS
Learn Dreamweaver

Views

830

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

Php error in Html Dreamweaver

New Here ,
Oct 17, 2017

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

Adobe Community Professional
Correct answer by Nancy OShea | Adobe Community Professional

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.

TOPICS
Learn Dreamweaver

Views

831

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
Oct 17, 2017 0
Adobe Community Professional ,
Oct 17, 2017

Copy link to clipboard

Copied

which DW build ?

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...
Oct 17, 2017 0
LEGEND ,
Oct 18, 2017

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.

The W3C Markup Validation Service

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...
Oct 18, 2017 0
Adobe Community Professional ,
Oct 18, 2017

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.

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...
Oct 18, 2017 0
Adobe Community Professional ,
Oct 18, 2017

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.

Nancy O'Shea, ACP
Alt-Web Design & Publishing

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...
Oct 18, 2017 0