Here is a very simple PHP Script, just make a new text document and name it to helloworld.php and place the following code in it:

This will print the text "Hello World!" onto a web page.
You can also insert HTML code into it.


Like I said, your website's server needs to have PHP installed.
So make a script named phptest.php and place this in it:
Navigate to http://www.yoursite.com/phptest.php
If a web page comes up and says: "PHP is Installed on this webserver!", you're ready to go!

[Back To PHP Tutorials]