Home | Programming | Php
So far, I've introduced several open source applications built with PHP such as Joomla, PHP-Nuke and phpBB. I've also posted a brief introduction to PHP, which links to some useful tutorials and resources that will help you get PHP installed on your computer if you wish to test locally. All this information is a bit much to swallow all at once, so today, I want to get started right at the very basics and make a very simple PHP page. There are tons of great tools available for developing code. My personal favorite is the most simple of all; Notepad! Notepad is a great tool for writing code because it doesn't do anything for you. While this makes debugging difficult, it makes sure you learn your code better and understand what it is doing. I wouldn't recommend Notepad for large projects, but for quick edits or simple pages, Notepad is a great tool which opens instantly and uses virtually zero resources. Today we are going to write a simple program which displays, "Hello World!" on a website. Nothing too fancy, but it is the traditional starting point in just about every programming language I have tackled! Open up Notepad:
<html> <head> <title >Hello World PHP Page!</title> </head> <body> <h1>Hello World PHP Page!</h1> <p> <?php echo "Hello World"; ?> </p> </body> <html>
Article Source: http://www.writerdatabase.com
www.webdevnotes.com/your-first-php-page/
Please Rate this Article
5 out of 54 out of 53 out of 52 out of 51 out of 5
Not yet Rated