adorni
Posts: 120
|
| Posted: 06/14/2010, 12:07 PM |
|
When i upload a file with "File Upload" form option, in the database put the filename. When i download the file... how i can a prefix to the filename in the database?
In the database i have in the field "file" , "XXX.EXE"
Hay i can put a link with "C:\FILES\XXX.EXE"
Or... how i can upload file and in the database save the filename with the path...
Thanks!
|
 |
 |
mamboBROWN
Posts: 1713
|
| Posted: 06/15/2010, 5:02 PM |
|
adorni,
If you are storing the name of the file in a database table there are a number of ways you could do it. I will give you two ways: 1. You could concat the path location to the file name in the database and display it as a link (in a MySQL query) or 2. you could pull the name from the database and add the directory path to the file name before you display it by using PHP string concatenation.
|
 |
 |
adorni
Posts: 120
|
| Posted: 06/16/2010, 4:40 AM |
|
Thanks. In option TWO... how i can using PHP string to add the path? And... i add "c:\+FILE"... in intranet i will be add "\\SERVER\+file" but... in internet...???
THanks and sorry for my ignorance!
|
 |
 |
|