How would I create an upload system so I can upload images to my site, and the images be stored into a directory named gallery?
My form is simple:
[code]
File:
I already found a tutorial to show the images on the site, but I want to make an upload thing so certain people can upload images to that directory.
[php] <?php
$dir = “gallery/”;
// Open Directory.
if($opendir = opendir($dir)) {
//Read Directory.
while (($file = readdir($opendir)) !== FALSE) {
//Check to see if it’s an actual image.
if($file!="." && $file!="…") {
//Show the images.
echo “”;
}
}
}
?>[/php]