After calling unlink for a specific file in a directory on a Linux system,
the file is deleted but subsequent calls to readdir return
old directory listing until the script finishes. The next time
I execute the script, it does not list the deleted file.
But I need to reread directory just after calling unlink.
I couldn't find any information regarding this behavior of readdir.
I also tried clearstatcache() but without success.

Can anyone help?

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to