ftp_put
| From: | Jason Romero | Date: | Tue, 03 Sep 2002 21:13:22 +0000 |
| Subject: | ftp_put | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-115099@lists.php.net to get a copy of this message | ||
I am having problems getting the ftp_put command to upload a file to an
apache server
i get this error
Warning: error opening C:\\WINDOWS\\Desktop\\Jason\\jjmckay\\testaudio.mp3
in /home/virtual/site31/fst/var/www/html/clientadmin/mp3upload.php on line
32
here is the code
$dest = "/var/www/html/public/$user/";
$upload = ftp_put($FTP, $dest, $source_file, FTP_BINARY);
if ($upload) echo "it worked";
else echo "it didnt work";
the $source_file is pulled from a form on the previous page
any suggestions?
Jason Romero