class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
I agree - your server configuration should be used to deny access to directory listings if that is your intention.
I can't speak for other web servers but in Apache you can do this (normally) by placing the following line in a .htaccess file in your web root:
Options -Indexes
Note that your webserver configuration MAY be set to ignore this in which case contact your webserver administrator. Chances are that on a shared hosting environment that this will work fine though.
See http://www.thesitewizard.com/apache/prevent-directory-listing-htaccess.shtml for example.Reply
I can't speak for other web servers but in Apache you can do this (normally) by placing the following line in a .htaccess file in your web root:
Options -Indexes
Note that your webserver configuration MAY be set to ignore this in which case contact your webserver administrator. Chances are that on a shared hosting environment that this will work fine though.
See http://www.thesitewizard.com/apache/prevent-directory-listing-htaccess.shtml for example.