To answer your question, the only way I can think of checking to see
if you CF Server can connect to a third party server, is to physically
get on the ftp server and check the user permissions.
If I were you though, I would do the following:
1) Separate your code into three different sections. It appearrs as
if you want to perform 3 different actions to the ftp server; so I
would separate them as follows. (1)open a connection to the server,
(2) change to diff dir than home dir & (3) upload a file.
2) First test to see if you can connect to the FTP server by just
"opening a connection". If an error does not occur here, then you
know that you are at least able to connect to the ftp server.
3) If you are able to successfully connect to the ftp server without
error, I would then simply test the other functions. By doing this,
you can figure out exactly what permissions your cfserver user/perm.
have. (ie (1)see if you can connect and then upload a file to your
home directory; (2)see if you can connect, upload file to home
directory and then try to change directory)
Hope this helps.
-Dave
----- Original Message -----
From: Michael Kear <[EMAIL PROTECTED]>
Date: Sun, 27 Jun 2004 23:10:52 +1000
Subject: RE: Now a CFFTP problem...
To: CF-Talk <[EMAIL PROTECTED]>
Thanks Dave, I thought about that too. Since it's the production server
that is trying unsuccessfully to ftp to a third server, its ColdFusion
itself that has to have ftp permissions to ftp OUT of the production server.
How do I make sure that ColdFusion has permissions to ftp outwards? (I
can't ftp into my own system because I haven't got a working inbound FTP
through my own firewall).
Cheers
Mike Kear
Windsor, NSW, Australia
AFP Webworks
http://afpwebworks.com
_____
From: sicksick monkey [mailto:[EMAIL PROTECTED]
Sent: Sunday, 27 June 2004 10:47 PM
To: CF-Talk
Subject: Re: Now a CFFTP problem...
Mike,
Not sure if you have tried this or not, but if your code seems to
work on your development server and not your production server, I
would first check the permission of the username you are trying to
connect with on your production ftp server. Make sure the username
and password you are using have valid accounts on both the development
and production ftp servers.
-Dave________________________________
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

