Here is the code ----
<!--- Login --->
<CFFTP CONNECTION="myserver"
USERNAME="username"
PASSWORD="password"
SERVER="ftp.myserver.com"
ACTION="Open"
STOPONERROR="Yes"
port="21">
<P>Did login succeed? <CFOUTPUT>#CFFTP.Succeeded#</CFOUTPUT>
<!--- Change dir first time --->
<cfftp
USERNAME="username"
PASSWORD="password"
SERVER="ftp.myserver.com"
action="CHANGEDIR"
directory="1624"
stoponerror="Yes">
<P>Did dir change succeed? <CFOUTPUT>#CFFTP.Succeeded#</CFOUTPUT>
<!--- Change dir second time --->
<cfftp
USERNAME="username"
PASSWORD="password"
SERVER="ftp.myserver.com"
connection="myserver"
action="CHANGEDIR"
directory="sports"
stoponerror="Yes">
<P>Did dir change succeed? <CFOUTPUT>#CFFTP.Succeeded#</CFOUTPUT>
<!--- Get the path info --->
<cfftp connection="myserver" action="GETCURRENTDIR">
<P>What's the path? <CFOUTPUT>#cfftp.returnvalue#</CFOUTPUT>
<!--- Upload our file --->
<CFFTP
USERNAME="username"
PASSWORD="password"
SERVER="ftp.myserver.com"
transfermode="ASCII"
CONNECTION="myserver"
ACTION="PutFile"
LOCALFILE="W:\wwwroot\temp\testfile.txt"
REMOTEFILE="testfile.txt"
RETRYCOUNT="5">
<P>Did upload succeed? <CFOUTPUT>#CFFTP.Succeeded#</CFOUTPUT>
<P>Show error - <CFOUTPUT>#CFFTP.errorcode#<br>#cfftp.errortext#</CFOUTPUT>
<cfftp action="close" connection="myserver" stoponerror="yes">
<P>Did logoff succeed? <CFOUTPUT>#CFFTP.Succeeded#</CFOUTPUT>
================================================
Here is my system specs ----
NT 4, SP 6a, CFAS Pro 4.5.1 SP1
================================================
Here is the error ----
15,
500 Illegal PORT command
================================================
Here is the strange part ----
If I change this and login back to my server it works fine, I only get that
error while trying to connect to the UNIX box in question. Yet another
developer I was working with was able to use this EXACT same template and
from his box it worked fine to the Unix box. His server specs, I believe,
are pretty close to the same as mine are. What would cause this error to
happen in the first place.
Thanks for any help anybody can provide.
Bill
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.