Hey guys,
Does anyone know of a script that could automatically generate menus based on folders in a directory?
Like this for example:
» Home
» Contact Us
» Downloads
Say they click on "Downloads" (lets say the URL to 'Downloads' was /downloads or something), this script would then find all of the folders within the /downloads folder and the menu would change to something like this for example:
» Home
» Contact Us
» Downloads
...• Windows
...• Mac
And say that this script is a "3-level script", meaning it could go to three different folder levels, or it could gather up to a folder in a folder in a folder (a URL such as: /downloads/pc/desktops) which would display:
» Home
» Contact Us
» Downloads
...• Windows
......- Wallpapers
......- Utilities
...• Mac
Right now I am in the process of learning PHP via a book I bought a month ago, but I still am not to the point where I myself could write something like this.
And for the record, I have had a look around Hotscripts and other script shrines for something like this and I haven't found anything. Might anyone here know of or have a script that can auto-generate a menu like this?
Thank you,
Andy
Does anyone know of a script that could automatically generate menus based on folders in a directory?
Like this for example:
» Home
» Contact Us
» Downloads
Say they click on "Downloads" (lets say the URL to 'Downloads' was /downloads or something), this script would then find all of the folders within the /downloads folder and the menu would change to something like this for example:
» Home
» Contact Us
» Downloads
...• Windows
...• Mac
And say that this script is a "3-level script", meaning it could go to three different folder levels, or it could gather up to a folder in a folder in a folder (a URL such as: /downloads/pc/desktops) which would display:
» Home
» Contact Us
» Downloads
...• Windows
......- Wallpapers
......- Utilities
...• Mac
Right now I am in the process of learning PHP via a book I bought a month ago, but I still am not to the point where I myself could write something like this.
And for the record, I have had a look around Hotscripts and other script shrines for something like this and I haven't found anything. Might anyone here know of or have a script that can auto-generate a menu like this?
Thank you,
Andy
Last edited:














