
- You are not logged in. | Login
March 21, 2007 3:31 pm
- cplusplus
- Member


Link to a loadable file
Help me with my problem! How to record a link to a loadable file into the data base (automatically when downloading file)?
March 21, 2007 3:38 pm
- mellis
- Member


Re: Link to a loadable file
cplusplus, what is your problem?
Don’t you know how to insert entry into the base?
As to the link, you cannot insert a link to a ‘loadable’ file but you can do it simply to the downloaded one.
Last edited by mellis (March 21, 2007 3:38 pm)
March 21, 2007 3:42 pm
- cplusplus
- Member


Re: Link to a loadable file
I’ve created some site (by the time on the localhost) and made so that after authentication users would be able to add news, articles and files to the server themselves (at the moment it doesn’t matter what news, files and articles will be there – I’ll set up limitations later). As far as user loads files to the server himself the link to it also should be added somehow. But I don’t realize how to do it…
It’s not a problem to load a file to the server but how to indicate a link???
At the moment I don’t even know how to specify the cause of the problem…
March 21, 2007 3:44 pm
- mellis
- Member


Re: Link to a loadable file
It’s not a problem to load a file to the server but how to indicate a link???
Don’t you know where file is loaded?
March 21, 2007 3:46 pm
- cplusplus
- Member


Re: Link to a loadable file
mellis, it’s clear how to make an entry… But it’s not clear what entry it should be
I.e. URL consists of ‘the catalogue where files are saved’ + ‘file’s name’???
July 13, 2007 5:48 am
- prisharma
- Member


Re: Link to a loadable file
Hiee
YOu can use header funtion for download file
*************************************************************
header('Content-Type: application/x-download');
header('Content-Disposition: attachment; filename=' . $filename);
print file_get_contents($fullPathOfFile);
*************************************************************
Plz try


