PHP Lesson 1 - Getting Setup
This is the first of a series of PHP tutorials. This first lesson explains how to setup your computer to begin programming PHP.
Prepare Development Workspace
Create a New Empty Website
Creating Your First PHP Page
Viewing Your First PHP Page
Lesson Index
Prepare Development Workspace
- Setup your development workspace by downloadig and installing XAMPPLite. (This installs the Apache webserver, MySQL, and PHP.)
- Open the folder where you installed XAMPPLite and run the file called xampp-control.exe.
- Click "Start" next to "Apache".
- Get a good text editor like NotePad++.
Create a New Empty Website
- Open the folder where you intalled xampplite. (Example: c:program filesxampplite)
- Open the "htdocs" folder.
- Create a folder for your new website. (Example: "mywebsite")
Creating Your First PHP Page
- Create a file called "index.php" in your new website folder.
- Using a text editor, type the following in the index.php file: <?php echo "Hello World" ?>
- Save the file.
Viewing Your First PHP Page
- Open your browser and navigate to http://localhost/mywesite (where "mywebsite" is the name of the folder you created earlier.
- You should now see the words "Hello World" displayed in your browser.
Lesson Index
- PHP Lesson 1 - Getting Setup
- PHP Lesson 2 - Processing Forms
Comments
[...]very few websites that happen to be detailed below, from our point of view are undoubtedly well worth checking out[...]...