note 24178 deleted from function.opendir by jimw

From: Date: Thu, 08 Aug 2002 18:53:25 +0000
Subject: note 24178 deleted from function.opendir by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-34553@lists.php.net to get a copy of this message
I am having some trouble building a dynamic menu. I want to be able to just create a new folder in a named menu folder and have the folder name automatically put in the list. I have been able to output the list but have been unsuccessful in linking from the root directory to the index.php inside the folder(ex. http://server/menu/Home/index.php). The script is located in the root directory. This command doesnt output right. $file = the directory inside the menu folder whose name im using in the menu... print "<a href=\"".$file."\index.html">".$file."</a><br>";

« previous php.notes (#34553) next »