This is the simple example to list contents of any Directory. To do this we are going to define function DirDisply( ) which will read the current directory contents and display it as a list.
Databases really are wonderful pieces of software, they allow us to organize our content logically and allow easy access, updating and searching. However, sometimes a database is overkill and is not needed for the task. For example, what if you had a list of sayings or quotes, and you would like to display a random one each time the page loads. This could easily be represented in a database; however, it is equally as easy to do it using flat files
This article contains:
1. Introduction to compression with PHP.. extending PHP with extensions.
2. Using ZIP
3. Using gZip
4. Using bZip2 and LZF
5. Using 'File_Archive' PEAR package
As Web pages have moved from static documents into dynamic database-driven applications, users are looking for the ability to upload data in the form of files. In today's article, we'll be looking at how files can be uploaded and then processed in PHP.
Let's assume that your Web site is devoted to a community of graphic artists from all backgrounds. As your site grew, you started devoting a section to displaying your members' works.
Until now, a member would send his or her contribution to an e-mail address listed on the Web site, and from there the image would be manually processed and added. With PHP 4, not only can your members upload images from the Web site directly, but also the majority of the processing that was done manually can now be automated. Here's how browser-based file uploading works:
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.