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

The most BASIC PHP question imaginable.

Community Beginner ,
Feb 02, 2010 Feb 02, 2010

Copy link to clipboard

Copied

I am working my way through the Lynda.com PHP Essential Training.

I have MYSQL, Apache & PHP all installed an working.

If I type this code into textedit, and save it as test.php, and view it in Safari, then every works as expected:

<head>

<title>PHP test</title>

</head>


<body>

<?php echo "Hello World!"; ?>

</body>

</html>

and I see "Hello World!" on the screen.

If I create a new PHP file in Dreamweaver CS4 and enter

<?php echo "Hello World!"; ?>

I see that the code looks pretty much identical in the code pane, but when I run it, instead of seeing "Hello World" I see: <?php echo "Hello World!"; ?>.

Clearly, there is something (presumably to do with the server side, that I am not setting properly, BUT WHAT???  I am absolutely pulling my hair out over this.

Any suggestions??

Thanks,

Peter

TOPICS
Server side applications

Views

296
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
LEGEND ,
Feb 03, 2010 Feb 03, 2010

Copy link to clipboard

Copied

LATEST

This is a duplicate thread. Now locked.


Votes

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