Log in

View Full Version : directory structure for saving images



gurmeet
01-18-2010, 07:10 AM
hi,
i am working on a site, like ORKUT or FACEBOOK,
in PHP / MYSQL
ther can be 100s of users for this site, i want them all to give the facilityof saving PIctures as album...

so how i can save pictures on web?
should i need to save all the pictures in a single folder named album?

or should i need to make seprate directory fro every user?
i want easy access to every file for users?



plz help soon

bluewalrus
01-18-2010, 07:33 AM
Should every user have access to every uploaded image, or just to images they've uploaded? Are you looking just for an upload script or also a display script?

gurmeet
01-18-2010, 09:16 AM
no-no i have scripts to upload and display...


but i want to know how to save images on server?

as user name TOM want to save 10images in his album, should there be separate directory for tom? in in a common directory where all the users can upload their image files?

restriction is possible with the help of PHP.. so it doesnot matter..