Hi all.
I have a PHP script that runs as a cron job. It compiles some data and then uses the fopen command to FTP the file to a remote server.
The script works fine, and the FTP works fine, most of the time. However, when the FTP connection cannot be made, or fails in some other way, my script doesn't know how to deal with it.
Is there a proper procedure for FTPing files with fopen, and then subsequently verifying that it all went well?
Or should I compile in the PHP FTP functions for this level of control?
Thanks.