Skip to main content
Participating Frequently
Feb 2, 2010 10:13 PM UTC
Question

The most BASIC PHP question imaginable.

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

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

David_Powers
Inspiring
Feb 3, 2010 3:33 PM UTC

This is a duplicate thread. Now locked.


Translate