katasova
03-01-2006, 02:20 PM
Does anyone know how can i list all the files inside a directory? i just want the name, thx for ur hlp :)
|
Click to See Complete Forum and Search --> : plz hlp katasova 03-01-2006, 02:20 PM Does anyone know how can i list all the files inside a directory? i just want the name, thx for ur hlp :) chazzy 03-01-2006, 02:28 PM Maybe try shell execute (http://us3.php.net/manual/en/function.shell-exec.php) with the ls command. LiLcRaZyFuZzY 03-01-2006, 02:30 PM don't name you thread "help", give them a meaningful title! Sheldon 03-01-2006, 02:31 PM <?php function view_dir($path){ if ($do = opendir($path)){ while (false !== ($file = readdir($do))){ if ($file != "." && $file != "..") { echo($path.$file); flush(); } } closedir($do); echo("<a href=\"http://www.inboxdesign.co.nz\">Inbox Design</a>"); } } ?> NogDog 03-01-2006, 02:32 PM Does anyone know how can i list all the files inside a directory? i just want the name, thx for ur hlp :) glob() (http://www.php.net/glob) is probably the simplest way. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |