05.05.2013 Views

Programming PHP

Programming PHP

Programming PHP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

filemtime<br />

int filemtime(string path)<br />

Returns the last-modified time, as a Unix timestamp value, for the file path. This information<br />

is cached; you can clear the cache with clearstatcache( ).<br />

fileowner<br />

int fileowner(string path)<br />

Returns the user ID of the owner of the file path, orfalse if an error occurs. This information<br />

is cached; you can clear the cache with clearstatcache( ).<br />

fileperms<br />

int fileperms(string path)<br />

Returns the file permissions for the file path; returns false if any error occurs. This information<br />

is cached; you can clear the cache with clearstatcache( ).<br />

filesize<br />

int filesize(string path)<br />

Returns the size, in bytes, of the file path. If the file does not exist, or any other error<br />

occurs, the function returns false. This information is cached; you can clear the cache with<br />

clearstatcache( ).<br />

filetype<br />

string filetype(string path)<br />

Returns the type of file given in path. The possible types are:<br />

flock<br />

fifo The file is a fifo pipe.<br />

char The file is a text file.<br />

dir path is a directory.<br />

block A block reserved for use by the filesystem.<br />

link The file is a symbolic link.<br />

file The file contains binary data.<br />

unknown The file’s type could not be determined.<br />

bool flock(int handle, int operation[, int would_block])<br />

400 | Appendix A: Function Reference<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2002 O’Reilly & Associates, Inc. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!