PHP from the Ground Up
 
SEARCH: webmonkey  the web

 
PHP
-------------------------
Print
this article for free. 
-------------------------

Pages:
1  PHP from the Ground Up
2 What Is It?
3 The Basics
4 Your First Script
5 Very Able Variables
6 HTML Forms and PHP
7 Arrays of Light
8 Operators; If, Else, Elseif; Loops
9 Comparison and Logical Operators
10 Loop-dee-Loops
11 Grand Master Functions
12 Some Final Thoughts

PHP from the Ground Up
by Tim Ziegler 27 Nov 2001

Tim Ziegler [an error occurred while processing this directive]builds websites in Texas with d2p. He wants to fabricate a giant bicycle-powered gyroscope. He hopes he's around when the robots all break free.

Page 1

PHP is a powerful scripting language that fits gracefully into HTML and puts the tools for creating dynamic websites in the hands of the people — even people like me who were too lazy to learn Perl scripting and other complicated backend hoodoo.

This tutorial is for the person who understands HTML but doesn't know much about PHP. One of PHP's greatest attributes is that it's a freely distributed open-source language, so there's all kinds of excellent reference material about it out there, which means that once you understand the basics, it's easy to find the materials that you need to push your skills.

I discovered PHP when I was building a site called LostRock.com. Since I didn't have a budget to hire programmers to create a beefy backend, I decided to teach myself how to build it with PHP. As I stumbled along, I was struck by how intuitive and straightforward the language was — you'll see, just keep reading.

Before we begin, you will need to install a server on your own machine in order to test your PHP scripts locally. (If you have space on a Web server which supports PHP, you can also test your PHP there, but this is kind of a pain because it means you'll need to FTP your files or telnet in every time you want to change something. If you're not sure whether your site host supports PHP, just ask 'em.) To do so, simply follow Julie's article about installing a Web server with PHP. After you've done that, come back and we'll dive in by step-by-stepping through the basics.

next page»