Guest
hello everyone!
i have an annoying problem while trying to connect to an ftp server via php's ftp functions in order to upload some files. here's the code:
I always get the "Couldn't connecto to FTP server" error, at the first line of code, while trying to connect. string. What is wrong here?? I have tried shutting firewalls etc. but with no success.
Any help will be highly appreciated.
Thanks in advance,
vlakas
i have an annoying problem while trying to connect to an ftp server via php's ftp functions in order to upload some files. here's the code:
Code:
$ftp_conn=ftp_connect('[URL unfurl="true"]www.mysite.com')[/URL] or die ("Couldn't connect to FTP server");
echo "sdf";
echo ($ftp_conn);
echo(ftp_login($ftp_conn,"username","password"));
ftp_chdir($ftp_conn,"offersys");
ftp_pwd($ftp_conn);
ftp_chdir($ftp_conn,"images");
ftp_pwd($ftp_conn);
ftp_fput($ftp_conn,$fname,$filetmp,FTP_BINARY);
Any help will be highly appreciated.
Thanks in advance,
vlakas