Pinoy Webmaster
.com pimp
Gender:
Posts: 1126
6048 credits Members referred : 0
Philippine Beaches
« on: Sep 10, 2006, 11:24:57 AM »
i came across this script but i cant seem to make it work.
Code:
<?php $x - function_name(); function function_name() { // ==== Configuration section ========================================= $directory_to_read = '../content'; // current directory where the file is // $file_to_save = "../Navigation.php"; // the file where to save results in $file_to_save = "Navigation.php"; // the file where to save results in
# HTML tempaltes for the links file: $header = "<br><div class='Nav'><small>\n"; $footer = "</small></div><br> "; $template = "<a title=\"[TITLE]\" href=\"../content/[FILENAME]\">[TITLE]</a> <br><br>\n";
it is supposed to make a menu for the contents of a directory by saving it in a file chmoded to 777. the filename has to be saved like this: This_is_an_example.php and it will show up in the menu as This is an example.
any assistance will be very much appreciated. thanks!
« Last Edit: Sep 10, 2006, 12:39:23 PM by Nikolas »
Pinoy Webmaster
.com pimp
Gender:
Posts: 1126
6048 credits Members referred : 0
Philippine Beaches
« Reply #6 on: Sep 11, 2006, 12:55:08 AM »
no notices already but its still not generating menu links. i checked the content of the Navigation.php file and this is what it saved, just the header and footre but no menu links: