Thats what I thought. Now onto my next problem I have…
I’m trying to upload an entire directory from my computer to my web server using ftp_put(). Lets say the directory I want to upload is C:/files/upload/. I want to move “upload” and all of the files/folders in it to “mysite.com/etc/” So the final product would be “mysite.com/etc/upload/”. Here’s what I have, which isn’t working:
ftp_put($conn_id, $dst, $src, FTP_BINARY);
The error I get says, “Warning: ftp_put(C:/files/upload/)Failed to open stream: No such file or directory in C:\path\of\script\ftp.php” even thought I’m sure the $src directory exists.
BTW, I’m running this php script on localhost using WampServer.