Re: file upload

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Akshay wrote:


I've been trying to come up with an algorithm that will allow me to upload all the files in a folder.


The scheme I have in mind is to use a feedback form that will let me pick out a target folder on my local machine. Upon submitting the form, I'd like the script to upload all the files in that folder into a predetermined folder on the host machine. Its easy with a single file, but I've run into a conundrum of sorts for a complete folder. Is there any way to pass the source path as a parameter in PHP, and have PHP upload all the files in that path?

The answer is no you cannot because. PHP does not have access to the remote machine, because PHP runs on the server. The only way to do this is with an activex or with a java applet (SHAMLESS PLUG: such as rad upload).





-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar.

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux