could some one help me with php?

dente de requin

New member
i am reading this book that teaches PHP, the program for web development

i am told these are php tags

<?php echo '<p>order processed</p>'; ?>

here is my html with embedded php

<html>
<head>
<title>petey's parts oo</title>
</head>
<body>
<h1>peteys parts</h1>
<h2>order results</h2>
<?php echo '<p>processed</p>'; ?>

</body>
</html>

but when i load this into an internet browser it all works but part of the php is rendered in the browser
the part is ( '; ?> )

the book says the php coding should not show
why is that particular part of code showing?

anyoine know?

thanks for any help

petey
 
The script should be run behind a web server. I'm assuming your loading the file in a web browser as a file with the address bar showing 'file:///....file.php' instead of 'http://...file.php'.

You should install a apache/php stack on your pc if you don't have one. The easiest way to do so is xampp: http://www.apachefriends.org/en/xampp-windows.html
 
Back
Top