• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

View in browser shows only code.

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

TOPICS
Extensions

Views

400

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
community guidelines

correct answers 1 Correct answer

Community Expert , Jun 12, 2018 Jun 12, 2018

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

Votes

Translate

Translate
Community Expert ,
Jun 12, 2018 Jun 12, 2018

Copy link to clipboard

Copied

Votes

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
community guidelines
Community Expert ,
Jun 12, 2018 Jun 12, 2018

Copy link to clipboard

Copied

LATEST

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
Wappler, the only real Dreamweaver alternative.

Votes

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
community guidelines