Jump to content

seeing ';?> on my page


kigroy

Recommended Posts

i created a file using this code

 

<html>
<head>
  <title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>

 

This is what browsers read when I test it locally on my machine:

 

Hello World

 

'; ?>

 

What is going on?

 

I'm using Dreamweaver 8 to edit files and save them and I open them with the Preview/Debug in browser inside Dreamweaver 8.  Also please note that I'm have not installed any thing like WAMP or XAMPP.

 

Is that the problem?  Thanks!

Link to comment
https://forums.phpfreaks.com/topic/136464-seeing-on-my-page/
Share on other sites

I open them with the Preview/Debug in browser inside Dreamweaver 8.  Also please note that I'm have not installed any thing like WAMP or XAMPP.

 

Is that the problem? 

Yes that is the problem. PHP files need to be parsed, otherwise your page will show your source code.
Link to comment
https://forums.phpfreaks.com/topic/136464-seeing-on-my-page/#findComment-712270
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.