Ads

Friday 28 November 2014

Upload Image Gallery




This script “Upload Image Gallery”, allows you to upload your images in any format, and find them in the gallery.
The script allows the uploading of multiple images, just press the easy button and a new form will appear. The script you can use it for any purpose, to offer your user an image hosting, or for your own personal use, a gallery of images on cars, motorcycles, homes and more.
You can change the language or graphics in a totally simple. It needs no database.

Instructions to delete all images

To delete all the images directly from the browser, you have to create a php file, for example: delete.php and insert inside this code:
<?php $system = 'uploads'; $files = scandir($system); foreach($files as $file){ if (($file != '.')&&($file != '..')&&($file != '.DS_Store')){ unlink($system.DIRECTORY_SEPARATOR.$file); } } header('Location: index.php'); ?>
When you want to delete all the images you will have to go to: yourdomain.com/delete.php and all images will be deleted.
Note: you should create this file with a different name or just create it in time of need, so that someone else can delete them for you.

No comments:

Post a Comment