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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFFTP CONNECTION CACHE PROBLEM

Status
Not open for further replies.

lws

Programmer
May 6, 2001
14
HK
Hello,

I have problem about cfftp connection cache, I have cached cfftp connection, however reopening of the connection to the ftp server for every request.

Can anyone tell me what's wrong with it? And also can anyone suggest some methods to tackle this problem?

Thanks a lot
 
Hey lws,

Can you post the code you're having trouble with?

GJ
 
Hi,

My cfftp code were shown as following, I want to maintain the ftp connection before the cfftp action='close'. Can you help me to tackle this question?
Thanks


open connection<br>
<cfftp action=&quot;OPEN&quot;
username=&quot;ftp&quot;
connection=&quot;first_con&quot;
password=&quot;anomynous&quot;
server=&quot;192.168.1.7&quot;>
Success? <cfoutput>#cfftp.succeeded#</cfoutput><br>

List the files in a directory:<br>
<cfftp action=&quot;LISTDIR&quot;
stoponerror=&quot;Yes&quot;
name=&quot;listfiles&quot;
directory=&quot;/&quot;
connection=&quot;first_con&quot;>
<cfoutput query=&quot;listfiles&quot;>
#name#<br>
</cfoutput>
 
Hey lws,

Sorry for the delayed response but it's been a busy week. I'm not sure I understand your question as your code looks ok. Are you saying that your ftp code opens and closes several connections to the server during execution?

GJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top