Highlighted

View in browser shows only code.

Explorer ,
Jun 12, 2018

Copy link to clipboard

Copied

Using DW CS5.5 with PHP file extensions and no testing server with no server side code in the pages. As the title shows when I go to preview in any browser only the code is displayed.

Adobe Community Professional
Correct answer by BenPleysier | Adobe Community Professional

Yep, that is normal behaviour and has nothing to do with Dreamweaver.

A browser interprets HTML, CSS and JS, but not PHP. For a browser to interpret PHP you will need a server to compile the file into an HTML document on the fly.

Solution:

  • Change the file extension to HTML

or

  • Install an Apache server
TOPICS
Extensions

Views

258

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

View in browser shows only code.

Explorer ,
Jun 12, 2018

Copy link to clipboard

Copied

Using DW CS5.5 with PHP file extensions and no testing server with no server side code in the pages. As the title shows when I go to preview in any browser only the code is displayed.

Adobe Community Professional
Correct answer by BenPleysier | Adobe Community Professional

Yep, that is normal behaviour and has nothing to do with Dreamweaver.

A browser interprets HTML, CSS and JS, but not PHP. For a browser to interpret PHP you will need a server to compile the file into an HTML document on the fly.

Solution:

  • Change the file extension to HTML

or

  • Install an Apache server
TOPICS
Extensions

Views

259

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
Jun 12, 2018 0
Adobe Community Professional ,
Jun 12, 2018

Copy link to clipboard

Copied

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...
Jun 12, 2018 0
Adobe Community Professional ,
Jun 12, 2018

Copy link to clipboard

Copied

Yep, that is normal behaviour and has nothing to do with Dreamweaver.

A browser interprets HTML, CSS and JS, but not PHP. For a browser to interpret PHP you will need a server to compile the file into an HTML document on the fly.

Solution:

  • Change the file extension to HTML

or

  • Install an Apache server

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...
Jun 12, 2018 0