I am trying to upload a file to the user activating this link. This is missing a key element like an fputs or something?
PHP Code:
function planetaryorbits(){
$source = "/home/rubeum/public_html/PlanetaryOrbits.xlsm";
$target = fopen("/home/rubeum/public_html/PlanetaryOrbits.xlsm", "w");
$conn = @ftp_connect("ftp.webserver.com") or die("Could not connect");
ftp_login($conn,"user","pass") or die("Could not login");
ftp_fget($conn,$target,$source,FTP_ASCII);
ftp_close($conn);
}