Re: is there any syntax to save a file in mysql?
| From: | Geoff Lane | Date: | Mon, 28 Mar 2011 07:27:58 +0000 |
| Subject: | Re: is there any syntax to save a file in mysql? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-312083@lists.php.net to get a copy of this message | ||
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