ftp functions, phalanger 2.0
Posted: March 11th, 2007, 8:26 am
Hi, i have problem with ftp_connection function. If ftp server is down application reports error and crashes. When i use it as a script there is no problem. It just moves to the next line of code after timeout. I don't know where is the problem ,maybe with error handling?
code sample
if ($connid=ftpconnect('192.168.10.32',21,30)) { ftplogin($connid,'anonymous','hsjhjfg@yahoo.com')}
code sample
if ($connid=ftpconnect('192.168.10.32',21,30)) { ftplogin($connid,'anonymous','hsjhjfg@yahoo.com')}