Public Voice Network
- e-cigarettes 2626
- what is hand made? 55
- Kanye video projections i… 1616
- standalone flip through? 33
- News of the day... 656656
- Quote someone 11471147
- Edit facebook event date…
- The Useful Thread 360360
- Pic of the Day 7465674656
- WANT of the day 14071407
- Vid of the Day 1503515035
- the gif animation thread 1842118421
- SNEAKERS 477477
- keynote/final cut questio… 11
- The Powerball 4040
- 80's-90's MEMORIE… 12661266
- What are you listening to… 55735573
- Premier League 2012/13 112112
- Romanthony 55
- Smatik Update 2013 22
- The Seasteading Institute 22
- dolphin of the day 66
- Great motorcycles 242242
- Punches For: 425425
PHP help 88 Responses
Last post: 1 year ago | Thread started: Apr 28, 12, 6:34 a.m.
- Stugoo
doh.
I'm trying to create a php array that recursively flows down directories and drops them into the array and outputs is as a json Array as per the following example:
http://pastebin.com/RSsUWmqwA friend hooked me up with the following php but i cant get my head around how to nest the arrays as I need them.
http://pastebin.com/K1LYC9XCcan anyone help?


- Dog-earApr 28, 12, 7:09 a.m. – Permalink
- uan
how about http://php.net/manual/en/functio… scandir ?
from the examples:
This function will scan all files recursively in the sub-folder and folder
- Dog-earApr 28, 12, 7:57 a.m. – Permalink
- Stugoo
Thanks everyone, the scanDir really sorted me out!
http://pastebin.com/UgjDae7VI looked at that link from you emexbcn before, I couldnt get it to work. I really need to brush up on my PHP.


- Dog-earApr 28, 12, 8:12 a.m. – Permalink


