3 Prototype: int fileinode ( string $filename );
4 Description: Returns the inode number of the file, or FALSE in case of an error.
7 echo "*** Testing fileinode() with file, directory ***\n";
9 /* Getting inode of created file */
10 $file_path = dirname(__FILE__
);
11 fopen("$file_path/inode.tmp", "w");
12 print( fileinode("$file_path/inode.tmp") )."\n";
14 /* Getting inode of current file */
15 print( fileinode(__FILE__
) )."\n";
17 /* Getting inode of directories */
18 print( fileinode(".") )."\n";
19 print( fileinode("./..") )."\n";
21 echo "\n*** Done ***";<?php
22 unlink (dirname(__FILE__
)."/inode.tmp");