in reply to Where to store images?

If I understand right you question, you can upload pictures, rename it to format g564se9e.jpg, where name is generated and original. then write to mysql database which user is owner of this file. directory where thouse files will be stored must have permitions with RW only for one system user(as example myscriptuser). You must create functions for read or write pictures to storage with this user permitions.

Replies are listed 'Best First'.
Re^2: Where to store images?
by AlfaProject (Beadle) on Jan 04, 2011 at 10:22 UTC
    Yes , but the problem is that it takes to much performance from the server. If there is too much users run this script , server will die. Much simple way to do it (like other says), just make a random names for directories and files . Probability to find these files are very low. But you can make a script that will find these files by 'brute search' and then it makes the service bad privacy service.