Jump to content

PHP code display in browser


Zaf
 Share

Recommended Posts

i try the code in w3school and it can be run. But when i try to replicate it in my notepad and save it as helloworld.php and i browse it in my browser, the code cannot be running as in w3school. Why?? Before this, all ok.. Can anyone help me to solve it?? Thank you in advance..

this code: 

<!DOCTYPE html>
<html>
<body>

<?php
ECHO "Hello World!<br>";
echo "Hello World!<br>";
EcHo "Hello World!<br>";
?> 

</body>
</html>

 

result in my browser:

"; echo "Hello World!
"; EcHo "Hello World!
"; ?>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...