PHP 8.5.0 Alpha 1 available for testing

Voting

: max(nine, two)?
(Example: nine)

The Note You're Voting On

matt_m at me dot com
13 years ago
unlink() does not clear the cache if you are performing file_exists() on a remote file like:

<?php
if (file_exists("ftp://ftp.example.com/somefile"))
?>

In this case, even after you unlink() successfully, you must call clearstatcache().

<?php
unlink
("ftp://ftp.example.com/somefile");
clearstatcache();
?>

file_exists() then properly returns false.

<< Back to user notes page

To Top