Jump to content
Sign in to follow this  

PHP code display in browser

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>

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



result in my browser:

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

Share this post

Link to post
Share on other sites

You have to run this code on a server which supports PHP. You cannot run PHP files from your computer without installing server software on it.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...