Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add FTP Link to Web Site

Status
Not open for further replies.

xBaseDude

MIS
Jan 31, 2002
357
US
Hi!

I'd like to add an FTP link to my web site.

I see it as user clicks on the link, and a 5meg file is sent to user's computer.Any user can get this file, and I want to be able to change this file at will (maybe every 30 days). I don't need the full range of ftp controls (password etc...) just grab the file and send it.

Does my ISP have to provide me w/a special directory, or can I use one of my existing read only directories?

Any tutorial links on ftp processes you'd care to share would be appreciated.

TIA - Wayme
 
Hi,

Sounds like you're just looking for a normal link to a file. Say you zip it and it's called 'myfile.zip', just put something like [red]<a href=&quot;myfile.zip&quot;>Click here to download</a>[/red] somewhere in your code.

Some file formats (such as some graphics files) may open in your browser, so it's probably best to instruct the user to right click the link and select 'Save Target As' (or whatever way their particular browser phrases it). Zipped files usually give you a save dialog box, and being compressed will probably download faster too.

hth
 
blueark;

Thanx for takin the time.

Your explaination and coding example were very clear to me.

Don't mean to question your answer as I am but a humble student...but aren't you sending the file via http instead of ftp?

Does &quot;ftp&quot; require some sort of &quot;ftp server&quot; on the server?

Where do I put the &quot;zip&quot; file to send? Does it go in the same directory as my html pages? Will *any* directory w/read only priviledges do?

Regards - Wayne
blatent ignorance spoken here!
 
Yes, you are sending by HTTP. If you have access to an FTP server, you can replace the code above with <a href=&quot;ftp://ftp.myserver.com/public/myfile.zip&quot;>... It's probably easier just to put the zip file in the same directory as your html files (any directory your users can access your web pages from can be used).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top