For the past 3 days Ive been trying to get my first PHP script to work, all its supposed to do is grab a file from one server and move it to the server that the script is on. I tries using fopen and fclose to no avail, so now im trying PHP's FTP abilitys. The error im getting is:
Warning: Wrong parameter count for ftp_login() in /home/beta/public_html/tensix/swap.php on line 15
The FTP code is pretty much directly out of the documentation, you can see the scripthere.
I've tried alternate methods of logging into the ftp server (as you can see in the code) but then it will just give me a parse error. I just dont know whats wrong with it