Is there any way to track the server is going offline during ftp file download process via php
<p>Is there any way to track the server is going offline during ftp file download process via php?</p>

<p>I've only found this function ftp_nb_continue() which has a returning value FTP_FAILED. Now it's seems to me that we only gonna receive this value if something goes wrong during the download, except the ftp server is shutting down or we lost connection. </p>

<p>So my question is: Is there any way that i can log in file that the download is failed because of the server went offline.</p>
