int filemtime(string filename) The filemtime()function returns the time
int filemtime(string filename) The filemtime()function returns the time when the file content was last modified: int filesize(string filename) The filesize() function returns the size of the file in bytes: string filetype(string filename) The filetype() function returns the type of the file. On success, the return value of filetype() may be one of the following string values: Value Description fifo Entry is a FIFO (named pipe) char Entry is a character special device dir Entry is a directory block Entry is a block special device link Entry is a symbolic link file Entry is a regular file unknown File type cannot be determined void clearstatcache(void) Most file system calls, which return the details of the file, are very expensive. To avoid this performance overhead, PHP caches the details of the file. This cache can be cleared by calling the clearstatcache()function. There is a set of functions which indicate the type of the file. These are: boolean is_dir(string filename) boolean is_executable(string filename) boolean is_file(string filename) boolean is_link(string filename) These functions return trueif the named file is a directory, an executable file, a regular file, or a symbolic link, respectively: boolean is_readable(string filename) boolean is_writable(string filename) The functions is_readable()and is_writable()can be used to find if the PHP script has permissions to read from or write to the named file. We use some of these functions in the Online Storage Application, later in the chapter. Page 245
Hint: If you are looking for very good and affordable webspace to host and run your java hosting application check Virtualwebstudio java web hosting provider