Home » Demos » PHP Upload and file / directory handling scripts

PHP Upload and file / directory handling scripts

This example page is a demonstration of three functions and one PHP class which are available (for free) on our site:

Open a directory | PHP file download | Directories oldest file | PHP Upload Script (class)

DigitalOceanSSD Cloud Server from $5/monthSimple cloud hosting, built for developers. Signup here and receive $10 in credits!

WebfactionShared hosting for developersFlexible hosting without having to maintain your own cloud servers. Start your free trial »

PHP upload function

Max. filesize: 80KB | Allowed file extensions are: .png, .zip, .pdf, .gif, .bmp

Try also the Ajax php upload example.

Directory functions (order by file date)

DOWNLOAD or open files on your own risk! (Download only the file you've uploaded before)

These are the files inside the upload directory:

Related PHP functions:

move_uploaded_file | is_uploaded_file | opendir | readdir | substr | fread