Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

HTMLGoodies.com:
PHP Tips & Tricks - A Picture Upload (Part 1)
Sep 30, 2005 @ 18:32:03

In this new article from HTMLGoodies.com today, they seek to help you (in Part 1 of the series) create a "picture upload" application.

One of the harder tasks to writing a PHP application (or any program) is to know how to break down the processes into smaller, more manageable pieces. Many PHP files start out as simple little scripts, but after time (and many feature requests) they tend to grow into very long, complicated programs.

Fortunately, PHP provides a few simple, yet elegant methods for breaking out code into separate pieces. The first one we will concentrate on is PHP's very powerful include() statement.

So, through the example of the upload script, they introduce you to several key bits of PHP functionality along the way. At the end of part 1, you'll have a script that can upload the image and place it in the right directory. Keep an eye out for part two for the rest of the story...

tagged:

Link:


Trending Topics: