Reputation: 1
how to store a php directory structure and transfer it to javascript?
I've got the code for recursively checking if its a file or folder , and also for json coding for displaying the structure.but the middle part of storing the php structure and transferring as json is missing
Upvotes: 0
Views: 163
Reputation: 1718
Show us your function/code for recursive directory listing and we will try to help. But in general - you will be pushing items into array and then you encode it into json string.
For json encoding use json_encode.
Upvotes: 2