<?php show_source(end(explode('/',$_SERVER['PHP_SELF']))); echo "<hr>"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>Access File Attributes</title>
</head>
<body>
<?php
    $readable = is_readable('access_log.txt');

    $writeable = is_writable('access_log.txt');

    echo "The file was readable: $readable.<br />";

    echo "The file was writable: $readable.<br />";

    clearstatcache();

    $stats = stat('access_log.txt');

    print_r($stats);
?>
</body>
</html>

Access File Attributes The file was readable: 1.
The file was writable: 1.
Array ( [0] => 48 [1] => 66060929 [2] => 33133 [3] => 1 [4] => 1375 [5] => 1104 [6] => 0 [7] => 55 [8] => 1724997609 [9] => 1100891542 [10] => 1750787245 [11] => 1048576 [12] => 8 [dev] => 48 [ino] => 66060929 [mode] => 33133 [nlink] => 1 [uid] => 1375 [gid] => 1104 [rdev] => 0 [size] => 55 [atime] => 1724997609 [mtime] => 1100891542 [ctime] => 1750787245 [blksize] => 1048576 [blocks] => 8 )