Page 1 of 1
file tree
Posted: Sun Mar 23, 2008 8:21 pm
by hush
I want to write a web app and part of it needs to read the directory structure of a remote windows machine so that the user can select files (with a tick box) to be backed up (I don't need to copy the files or anything just be able to get the paths into an array or something). What could I use to do this? I wouldn't mind learning how to do it from scratch but also if there is something that you know already does this, that would be great also (so I can learn it and also not reinvent the wheel).
Re: file tree
Posted: Sun Mar 23, 2008 8:47 pm
by Christopher
I would probably create a web service on the remote machine that would return the list of directories. Read the directory and create XML maybe. Then fetch the XML and create the checkboxes from that.
Re: file tree
Posted: Sun Mar 23, 2008 9:07 pm
by hush
i have no idea how to do any of that... but it is the answer i was looking for. i can now go and do some tutorials, play with some code and get an idea. any other broad methods to achieve this would be great also? as i may find the advantages balanced against the disadvantages of another method may be better or worse for my particular app.
Re: file tree
Posted: Wed Mar 26, 2008 3:53 am
by hush
i've done a bit of programming but not much web oriented stuff. I have pickup xml and like it. i didn't realise that it was so ubiquitous.
As you probably know php5 has a SOAP extension so i was going to use that rather then pear::soap or nusoap.
This application is going to be used on customer workstations who pay for service so whilst i would be happy to run a full blown web server on my box i'm a little concerned about the footprint in this scenario. the examples that i have seen use either IIS or apache, i would hope that i could use tomcat or something more light weight (is anyone able to suggest anything?).
i read that soap is good with firewalls but what about NAT (PAT), i assume that the client initiates the connection and if this is the case then there will be an issue with NAT.