I got my answer:  Use directory functions, not filesystem functions:

http://www.php.net/manual/en/ref.dir.php

- Ken
[EMAIL PROTECTED]

At 02:51 PM 8/24/01 -0400, Ken wrote:
>I can't find a way in PHP to behave on multiple files, without knowing the script 
>somehow knowing the filenames already.
>
>In particular, I want to delete all files in a directory.  unlink("*") doesn't seem 
>to work with wildcards (at least not on my test Windows environment).
>
>I can't find any function that gets me a list of filenames, either.
>
>Am I missing something, or do I have to shell out to do this?
>
>- Ken
>[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to