Is it possible to upload to a secure directory (on a unix machine) with PHP? I have a script set up right now that simply uploads to a wide open dir.
I'd like to lock it down so that no one can go to the root and list the contents.
I would just create a file named ".htaccess" in that directory and put the following line:
Options -Indexes
On Apache 1.3.x and probably 2.x as well this disallows directory listings.
See http://httpd.apache.org/docs/mod/core.html#options
Great ... thanks! I'll give this a try.