I'm new to php and am wondering if it is possible to write a php program that will upload files from my windows machine to my hosted website.
Ideally I would like to do this with ftp, I have no problem writing a program that uses a html form with file uploading and then using ftp_put to place the file. My problem is I can't find a way to do this without using the html form ideally I would like to do something like:
$destination_file = "public_html/fileToUpload"; //directory on web server
$source_file = "c:\\fileToUpload"; // file on my local computer
$upload = ftp_put($conn_id, $destination_file, $source_file, FTP_ASCII);
Is this possible?
Thanks in advane
Perrin
Ideally I would like to do this with ftp, I have no problem writing a program that uses a html form with file uploading and then using ftp_put to place the file. My problem is I can't find a way to do this without using the html form ideally I would like to do something like:
$destination_file = "public_html/fileToUpload"; //directory on web server
$source_file = "c:\\fileToUpload"; // file on my local computer
$upload = ftp_put($conn_id, $destination_file, $source_file, FTP_ASCII);
Is this possible?
Thanks in advane
Perrin