[PHP] How can i print out the files in a directory?

2003-10-17 Thread Bas
How can i print out all of the files in a directory? I want some output as this: index.php login.php image1.gif image2.jpg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How can i print out the files in a directory?[Scanned]

2003-10-17 Thread Michael Egan
forgotten what it was!! Regards, Michael Egan -Original Message- From: Bas [mailto:[EMAIL PROTECTED] Sent: 17 October 2003 13:42 To: [EMAIL PROTECTED] Subject: [PHP] How can i print out the files in a directory?[Scanned] How can i print out all of the files in a directory? I want some output

Re: [PHP] How can i print out the files in a directory?

2003-10-17 Thread Raditha Dissanayake
hi please see if this is what you need: http://www.raditha.com/php/dir.php Bas wrote: How can i print out all of the files in a directory? I want some output as this: index.php login.php image1.gif image2.jpg -- Raditha Dissanayake.

RE: [PHP] How can i print out the files in a directory?

2003-10-17 Thread Craig Lonsbury
[] = trim($file); } } closedir($handle); } return $filesArr; } hth, Craig -Original Message- From: Bas [mailto:[EMAIL PROTECTED] Sent: October 17, 2003 6:42 AM To: [EMAIL PROTECTED] Subject: [PHP] How can i print out the files

Re: [PHP] How can i print out the files in a directory?

2003-10-17 Thread Nitin
: [PHP] How can i print out the files in a directory? This has been working for me... just pass the function the path to the directory you want the listing for. function getDirFiles($dirPath){ if ($handle = opendir($dirPath)) { while (false !== ($file = readdir($handle