I am working on a site hosted at godaddy that requires a daily download of a certain file from an FTP host. The usual link we used was in the format of ftp://user
My first attempt was to make a CRON job that runs this simple script:
Unfortunately it doesnt work. The output I receive ends with:
When I try this script on my own dedicated server it works perfectly, without changing anything in the script.
So my next attempt was to use PHP's ftp_connect() and ftp_get() functions... well, that didn't work either. It won't even connect. And, as with the CRON job, it works perfectly on my dedicated server.
This leads me to believe that godaddy has some kind of block on FTP connection from within a script or something. Is there any other alternative to automatically retrieving this file? Thanks very much.