I need to know which function or script might i use to show the files in a directory... any shove in the right direction appreciated
http://www.php.net/readdir
<?php if ($handle = opendir('/home/user/www/')){ echo "Files:<br>"; while (false !== ($file = readdir($handle))){ if ($file != "." && $file != ".."){ if(!eregi("index", $file)){ echo "$file"; } } } } closedir($handle); ?>
or something like that =|
Just remember if using Windoze, to do it like:
c:\progra~1\apache\htdocs\
Else you could be in trouble...
Try to keep to the MSDOS version of nomenclature as well to avoid any potential problems.
Thanx... I think that was a good shove!