Welcome Guest, Not a member yet? Register   Sign In
CI_FTP class - error handling for ftp->connect?
#1

[eluser]Myles Wakeham[/eluser]
Looking for some 'best practices' on this. I have to connect to a dozen different servers in a round-robin arrangement, copying files to each via FTP. I need a way to ensure that ftp->connect doesn't fail, and if it does handle it gracefully.

Other than reading debug messages (which won't work for me since a human won't be doing this), is there any return value that can be tested for ftp->connect or some other way to test if the connection succeeded?

Thanks
Myles


Messages In This Thread
CI_FTP class - error handling for ftp->connect? - by El Forum - 02-24-2009, 02:56 AM
CI_FTP class - error handling for ftp->connect? - by El Forum - 02-24-2009, 05:57 AM
CI_FTP class - error handling for ftp->connect? - by El Forum - 02-24-2009, 08:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB