Thanks for your suggestions, Dan...
[The host which you are attempting to connect to is not accepting FTP connections (test from another machine to confirm)]
By "another machine" I assume you are referring to a different
www.mydomain.com. The cURL used to work from a domain I no longer have. The same cURL works today from a new domain I have. Are you suggesting I open a new domain and web host to issue the cURL from there? Or another PC machine?
[The host which you are attempting to run the cURL script from has blocked outbound FTP traffic (try a file_get_contents() call for an HTTP file and, if it succeeds, try FTP with the username/password embedded in the URI)]
I ran a FTP test instead of cURL and it returns: "Could not open xxxx.yyyy.com". See code below. I open the site directly thru CuteFTP or IE, no issues.
$remote_file = 'invstatfile.txt';
$local_file = 'myinvstatfile.txt';
$ftp_server = "xxxx.yyyyy.com";
$ftp_user_name = "user";
$ftp_user_pass = "pass";
// open some file to write to
$handle = fopen($local_file, 'w');
// set up basic connection
$conn_id = ftp_connect($ftp_server) or die("Could not open $ftp_server\n");
// login with username and password
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
// try to download $remote_file and save it to $handle
if (ftp_fget($conn_id, $handle, $remote_file, FTP_ASCII, 0)) {
echo "successfully written to $local_file\n";
} else {
echo "There was a problem while downloading $remote_file to $local_file\n";
}
[The host which you are attempting to connect to is not accepting FTP connections from the host running the cURL script]
This might be the issue. OR, the Go Daddy host package I bought does not allow cURL or FTP...I will try to contact the Host's tech support tomorrow.
Any other recommendations from the group? Has anyone experienced this using Go Daddy?
Regards,
Getmea