PHP Developer's Dictionary- P72:PHP is an open source, server-side, HTML-embedded scripting language used to create dynamically generated Web pages. With an easy-to-use syntax and a large, extensible library of modules, PHP brings together the best of Perl, C++, and other languages. | PHP Developer s Dictionary 2 010 Write 3 011 Write and execute 4 100 Read 5 101 Read and execute 6 110 Read and write 7 111 Read write and execute Table . Permissions Returned by fileperms on a Windows System Mode Permission 7 111 Execute files with a .exe or .bat extension 6 110 Write normal files 4 100 Read files with the read-only attribute Note The results of this function are cached by PHP. Any subsequent calls to fiieperms will return the same results even if the environment has changed. The cache is cleared through the ciearstatcache function. filesize Syntax int filesize string filename Description The fiiesize function returns the size in bytes of the file specified in filename . This function returns false 0 if an error is encountered. Note The results of this function are cached by PHP. Any subsequent calls to fiiesize will return the same results even if the environment has changed. The cache is cleared through the ciearstatcache function. filetype Syntax IT-SC book 355 PHP Developer s Dictionary string filetype string filename Description The fiietype function returns the type of the file specified in filename . The file types returned are fifo char dir block link file and unknown. In Windows this function returns either file or directory. This function returns false 0 if an error is encountered. Note The results of this function are cached by PHP. Any subsequent calls to filetype will return the same results even if the environment has changed. The cache is cleared through the clearstatcache function. flock Syntax bool flock int fp int operation Description The flock function locks the file referenced by fp . This function uses a method of locking that requires all other programs to lock the file in the same way. The methods of locking the file are listed in Table . Table . Operation Parameters Used by the flock Function Function Operation Binary Shared lock 1 001 Exclusive lock 2 010 Release a lock 3 011 Shared lock without blocking 5 101 .