Re: File chooser

From: Date: Sat, 03 May 2003 14:33:07 +0000
Subject: Re: File chooser
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-146276@lists.php.net to get a copy of this message
on 03/05/03 7:24 PM, Guillaume (g.jullien@free.fr) wrote: > I want the client to upload a file from the client's machine to the > server (using FTP protocol) > I want to help the client with a file chooser You are confused. PHP/Web browser based file uploads are NOT related to FTP. The $_FILES array you talked about is to do with file uploads done through a web browser, however, there is no way for you to know what path their file came from, that's private stuff. All you get is the file on the server in the $_FILES array. You them have to copy it out of the temp directory, and move it to somewhere on your websever. For sample code on file uploads, check the PHP manual: http://www.php.net/manual/en/features.file-upload.php Justin

« previous php.general (#146276) next »