I want to upload from my server "target.txt" that is "source.,txt" on the server. I can not get the $source right for my webserver. Any suggestions?
PHP Code:<?php
$source = "/home/source.txt";
$target = fopen("target.txt", "w");
$conn = ftp_connect("ftp.testftp.com") or die("Could not connect");
ftp_login($conn,"user","pass");
ftp_fget($conn,$target,$source,FTP_ASCII);
ftp_close($conn);
?>



Reply With Quote


Bookmarks