SunQuest
 
           Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old March 25th, 2003, 04:02 PM
darcyr darcyr is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 2 darcyr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Angry ftp_get function

It is my understanding that the ftp_get will transfer a file from the ftp site ONLY to the server on which the script is running.... My question is... What good is that if you can't save it to the local hard drive of the user??? Am I missing something here? Is there a way to save a file to the users local hard drive? Any help would be appreciated...

thanx

Reply With Quote
  #2  
Old March 25th, 2003, 04:46 PM
laidbak laidbak is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Location: In Tha IE -- San Bernardino COUNTY
Posts: 788 laidbak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 4 m 2 sec
Reputation Power: 7
Send a message via ICQ to laidbak Send a message via AIM to laidbak Send a message via MSN to laidbak Send a message via Yahoo to laidbak
Here is the spec for ftp_get:

Quote:
bool ftp_get ( resource ftp_stream, string local_file, string remote_file, int mode [, int resumepos])


ftp_get() retrieves remote_file from the FTP server, and saves it to local_file locally. The transfer mode specified must be either FTP_ASCII or FTP_BINARY.


I think you are not understanding how this works maybe:

local = where the script is running
remote = where you are downloading from
client = the browser client

So, what is it you are trying to do exactly, and how would you like it to work?
__________________
__________________________________________________ _
Wil Moore III, MCP | Integrations Specialist | Senior Consultant
Are You Listed...? | DigitallySmooth Inc.

Reply With Quote
  #3  
Old March 25th, 2003, 06:11 PM
darcyr darcyr is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 2 darcyr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
well, i'm using the code from the "Building An FTP Client with PHP" from this site (with a few modifications for my ftp site), and it works great except when I click on a file to download, it puts the file I am downloading on the hard drive of the computer running my webserver (Apache), not on my local drive (where I am running the webpage from).

Reply With Quote
  #4  
Old March 25th, 2003, 07:56 PM
laidbak laidbak is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Location: In Tha IE -- San Bernardino COUNTY
Posts: 788 laidbak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 4 m 2 sec
Reputation Power: 7
Send a message via ICQ to laidbak Send a message via AIM to laidbak Send a message via MSN to laidbak Send a message via Yahoo to laidbak
Quote:
Originally posted by darcyr
well, i'm using the code from the "Building An FTP Client with PHP" from this site (with a few modifications for my ftp site), and it works great except when I click on a file to download, it puts the file I am downloading on the hard drive of the computer running my webserver (Apache), not on my local drive (where I am running the webpage from).

So, what is it you are trying to do exactly, and how would you like it to work?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > ftp_get function


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway