• You are not logged in. | Login

Post a reply

March 21, 2007 3:31 pm

cplusplus
Member
Ranks

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:34 pm

Keeper
Member
Ranks

Re: Link to a loadable file

Could you tell more details?


 

 

March 21, 2007 3:38 pm

mellis
Member
Ranks

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
Ranks

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
Ranks

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
Ranks

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  hh

I.e. URL consists of ‘the catalogue where files are saved’ + ‘file’s name’???


 

 

March 21, 2007 3:50 pm

shadow122
Member
Ranks

Re: Link to a loadable file

You can do as you like…


 

 

March 21, 2007 3:54 pm

cplusplus
Member
Ranks

Re: Link to a loadable file

It’s clear, thanks… I just say stupid things hh


 

 

July 13, 2007 5:48 am

prisharma
Member
Ranks

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


 

 
  • Actions
  • Top
ITCrimea. Ukraine Web Development Company. Professional Developers and Web Designers Team
Custom Web Designs, Internet Applications, E-Commerce Websites, Interactive Sites, Database-Driven Sites and Services