Display directory structure to admin
<p>i am developing a CMS in which i hav to show the administrator the directory structue of root folder. What im doing is getting the directory structure using php and trying to print it on the client web page using javascript <code>(echo"&lt;script&gt;javaFunc()&lt;/script&gt;")</code> , now after visiting different forums, i see people are saying that its not a gud idea to call javascript from php!! is it so? if yes then wats shud be the proper way for displaying the server directory structure, at client side?</p>
