uploading entire directories

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mbhimji
Forum Newbie
Posts: 2
Joined: Mon Jun 12, 2006 5:38 pm

Post by mbhimji »

PING - just reactivating this message.

Is there a way for a user to specify a directory on their local PC and have PHP scan that directory and upload all the files including sub-directories to a server (in addition to building the subdirectory on the server and placing the files into their correct location).

I suspect not, but hoping that someone can clarify. I'm guessing that I'll have to do this in VB or C/C++

Thanks,

Mohammed
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

no website can perform such an action without the help of something residing on the client machine that has access to the file system such as Flash or Java.

And please don't resurrect long dead threads. ... split from here.
mbhimji
Forum Newbie
Posts: 2
Joined: Mon Jun 12, 2006 5:38 pm

Post by mbhimji »

Hi,
feyd wrote:no website can perform such an action without the help of something residing on the client machine that has access to the file system such as Flash or Java.

And please don't resurrect long dead threads. ... split from here.
My apologies.

I suspected that that was the case. But oddly enough, someone on ScriptLance said that they can do this in PHP. I may pay just to see HOW they would accomplish this!

I've got a "workaround" of sorts. I'll just upload the directory to my *nix server, then write a small program to FTP the directory to various other servers. Not the best, but I'd rather not have to code this in VB or C.

Take care,

Mohammed
Post Reply