Re: is there any syntax to save a file in mysql?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday, March 28, 2011, Negin Nickparsa wrote:

> ... i want every user to have his/her own files in their account. (i
> used session for them) n now i want them to have their specific
> files then i think i must have db that store the files n user can
> retrieve his/hers not just details if i just save the details then
> how they download the files that they receive from another users?

One way is to create a directory for each user in which you store than
user's files. You can name each directory for the user's ID.

That strategy lets more than one user have the same filename, although
it doesn't let one user have more than one file with the same name
(which might be required for a CMS etc.)

Others can download files by clicking on hyperlinks to the target
files.

HTH,

-- 
Geoff


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux