Your first sample page
Ok now that you have your development area set up (if you don't go here- https://ininjas.com/forum/index.php?topic=4146.0
) it's time to make your first sample page, which much like any programing language, will be a 'hello world' page. Open up you're text editor and create a new project/ file. For eclipse you start a new php project, call it simple_project then a new file in the project. For this tutorial we will name the file "test.php" which will open up to a blank file. In the file we will put this code:<?php
echo "Hello, World!";
(note: for some people this script will not work, if that is the case, you can always writhe a simple HTML script to say hello world that would look something like this: <html>
Save the file then open up XAMPP control panel and turn on MySQL and apache. Next, open up your browser and go to http://localhost/simple_project/test.php
If the page says 'hello world' congratulations the page is working and you have your first PHP file set up.
Once again all credit for this goes to the book PHP for absolute beginners by Jason Lengstorf. I couldn't have made this or learned PHP without that.