[PHP] How to Detect File in a Specifc Directory on Window Env?

2002-07-19 Thread Jack
Dear all I had a folder which contains a lot of pdf file, the name format of the pdf files are : x.dateformat.pdf (eg : abcdefg.20020718.pdf). Now i want to use the php script to detect what files it got in a specific folder. i want to make a user input form which will let user to input the

RE: [PHP] How to Detect File in a Specifc Directory on Window Env?

2002-07-19 Thread Wouter van Vliet
I'd use something like: ?php $handle=opendir('.'); while (false!==($file = readdir($handle))) { if ($file != . $file != ..) { echo $file\n; } } closedir($handle); ? to retrieve dir listing. If you make a function from it, which you'll give a path for argument you can make the