Create a simple php file
We will be creating a simple php file, to display a line in the browser, and to show some php settings.
Note that php code must be placed between a pair of open and close php tags.
A open php tag is:
<?php
A close php tag is:
?>
In this case, the actual php code in between the two tags is:
echo "This line is created by PHP";
This results in the browser showing:
This line is created by PHP
To see some settings of php, for the server which test.php is running on, we add the below line of code:
phpinfo();
This results in the browser showing, some settings of php:
We have come to the end of this tutorial, hope this simple introduction to php helps new php programmers. Take care and see ya.

Comments »
No comments yet.
RSS feed for comments on this post.