|
fileinode
Gets file inode
(PHP 4, PHP 5)
Code Examples / Notes » fileinodemark nearby techexplained dot com
This function, in spite of its name, also works for directories. Most any valid path in the filesystem will generate an inode value.
pixel20
Sample function that generates apache 2.2 ETag. Useful for scripts serving images or other cachable data. $file="example.png"; // Inode $ETag = dechex(fileinode($file)); // Size $ETag.= "-".dechex(filesize($file)); // Modification time in useconds & (2^33-1) $ETag.= "-".dechex(((filemtime($file).str_repeat("0",6)+0) & (8589934591))); header("ETag: \"$ETag\"); |
Change Languagebasename chgrp chmod chown clearstatcache copy delete dirname disk_free_space disk_total_space diskfreespace fclose feof fflush fgetc fgetcsv fgets fgetss file_exists file_get_contents file_put_contents file fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype flock fnmatch fopen fpassthru fputcsv fputs fread fscanf fseek fstat ftell ftruncate fwrite glob is_dir is_executable is_file is_link is_readable is_uploaded_file is_writable is_writeable lchgrp lchown link linkinfo lstat mkdir move_uploaded_file parse_ini_file pathinfo pclose popen readfile readlink realpath rename rewind rmdir set_file_buffer stat symlink tempnam tmpfile touch umask unlink |