Is the file executable: is_executable
";
return;
}
print "$f is ".(is_executable( $f )?"":"not ")."executable
";
}
?>
PHP Session et Cookies: Compter le nombre de visiteur à l’aide des cookies
Count Visits
You have visited this page times in this session
PHP: Vérifier si le fichier est lisible
Is the file readable: is_readable()
";
return;
}
print "$f is ".(is_readable( $f )?"":"not ")."readable
";
}
?>
PHP: Fermer un fichier
$filename = 'data.txt';
$handle = fopen($filename, "rb");
$contents = fread($handle, filesize($filename));
fclose($handle);
print $contents;
?>