move files according to items position in the tree

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
aneuryzma
Forum Contributor
Posts: 106
Joined: Sat May 17, 2008 7:03 am

move files according to items position in the tree

Post by aneuryzma »

Hi,

I have a folders Tree displayed using ajax in which is possible to drag and drop items inside folders.

I can modify the structure of a json file using xmlHttpRequests.

The json file contains the files and folders in a specific directory on the server.

I want now to move the files according to JSON updates in order to move files on the server according to the movement of items in the tree on the client.

Should I skip the JSON file ? How should I read it to change the filesystem structure ?
What do you suggest me to do ?

thanks
Post Reply