News Feed
Jobs Feed
Sections




News Archive
DevShed:
Uploading Files and Navigating Directories in PHP
August 30, 2006 @ 10:36:15

Continuing on in their latest series (begun with this part), DevShed has posted part two of their look at working with files in PHP - "Uploading Files and Navigating Directories in PHP".

They jump right in, giving you the needed settings for your php.ini file to get the examples to work (mainly for the file uploads). They explain what a file upload form looks like and what some of the potential error codes could be.

The code comes next, showing a simple file upload form taking in the file, moving it off to another directory, and if there are errors, displaying them. The next obvious step up from a single file upload is the multiple file upload, and they show how to use PHP's form handling of arrays to accomplish this.

Finally, they include a simple little script to read the directory the files are in and display the information about them (like size file, name, and modified date).

0 comments voice your opinion now!
file upload navigate directory information multiupload file upload navigate directory information multiupload


blog comments powered by Disqus

Similar Posts

Paul Jones' Blog: When Possible, Use File *Resources* Instead Of File *Names*

Dave Dash's Blog: Saving a file to a database using symfony and doctrine

PHPBuilder.com: Boost PHP Site Performance with Zend Framework Data Caching

Ian Selby's Blog: Uploading Large Files With PHP

WebReference.com: How to Interact with Web Forms (Part 2)


Community Events











Don't see your event here?
Let us know!


release phpunit code tool functional community example conference testing unittest zendframework2 development object interview language introduction podcast series framework opinion

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework