Ok, I'm having the same problem, see I use a form to upload but I guess
that it puts the file in temporary file, so with copy or something it
figures automatically where to take th file from how do I get the $
source and ft_put to figure out where to take this file from, or can I
get it to take it directly from the users computer through form?


- Victor > www.argilent.com

-----Original Message-----
From: Richard Lynch [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 05, 2002 9:34 PM
To: Jason Romero
Cc: [EMAIL PROTECTED]
Subject: [PHP] Re: ftp_put

>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

Need more source code to tell you exactly where, but it looks like
you're
trying to have PHP suck in the original file name rather than the
uploaded
file.

You can't do that.

If you could, PHP could be used to steal *ANY* arbitrary file off of
*ANY*
computer.  Major security problem.

-- 
Like Music?  http://l-i-e.com/artists.htm


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to