torna al menu...

PHP File Tree with jQuery

This entire list was generated with one line of code:

	echo php_file_tree($_SERVER['DOCUMENT_ROOT'], "javascript:alert('You clicked on [link]');");

The dynamic effects are enabled by including the jQuery library and one small JavaScript file:

	<script src="jquery.js" type="text/javascript"></script>
	<script src="php_file_tree.js" type="text/javascript"></script>

If the tree appears fully expanded then you have not properly included the jQuery library. Download jQuery and update the filename in the source code of this file. Trust me, it’s worth the download ;)

Visit the project page


Browing...