How can I?
Posted 09 October 2006 - 08:12 PM
Posted 09 October 2006 - 08:19 PM
<a href="http://www.yoursite.com/file/path/filename.ext">Download this file</a>
I know that's not the answer you're looking for, but your question was rather vague. Why don't you be a little more specific about how you're deciding what files to offer for download or some source code.
It's like joining an automobile enthusiasts forum and saying, "How do I build a car?" Well, lots of ways.
Posted 09 October 2006 - 08:23 PM
I thought it has something to do with $_FILE.
Posted 09 October 2006 - 08:44 PM
I hope that this information is sufficient...
Posted 09 October 2006 - 09:43 PM
maybe even to be able to create a folder on the remote machine where to copy that archive
You cannot do ANYTHING on the client with php except create cookies.
Posted 09 October 2006 - 09:50 PM
Creating a link to download a file is as simple as creating the
<a href></a>that I gave you above. If there's multiple items you want to offer for download, you have to create a bunch of those links, one for each item.
The thing that differs is how you build the list. If you have 100 files you want to offer for download, you certainly don't want to type that out 100 times. And you certainly want it to stay up to date with which archives are actually valid and available for download.
We can help you do that, but not without you being more specific about where these files are stored, how your website "knows" about them, etc.
Posted 12 October 2006 - 03:05 PM
I have a text document http://myhost.com/location/file.txt
and when I write <a href="http://myhost.com/lo....txt">Click</a> it simply opens that text file
it does not try to download it to the remote machine...
Thank you roopurt18 for your pacience, and thorpe for providing me that useful piece of information (I think I will start learnig Java to compensate for these things)...
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users