05.05.2013 Views

Programming PHP

Programming PHP

Programming PHP

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

file<br />

array file(string path[, int include])<br />

Reads the file at path and returns an array of lines from the file. The strings include the endof-line<br />

characters. If include is specified and is true, the include path is searched for the<br />

file.<br />

file_exists<br />

bool file_exists(string path)<br />

Returns true if the file at path exists and false if not.<br />

fileatime<br />

int fileatime(string path)<br />

Returns the last access time, as a Unix timestamp value, for the file path. Because of the<br />

cost involved in retrieving this information from the filesystem, this information is cached;<br />

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

filectime<br />

int filectime(string path)<br />

Returns the creation date, as a Unix timestamp value, for the file path. Because of the cost<br />

involved in retrieving this information from the filesystem, this information is cached; you<br />

can clear the cache with clearstatcache( ).<br />

filegroup<br />

int filegroup(string path)<br />

Returns the group ID of the group owning the file path. Because of the cost involved in<br />

retrieving this information from the filesystem, this information is cached; you can clear the<br />

cache with clearstatcache( ).<br />

fileinode<br />

int fileinode(string path)<br />

Returns the inode number of the file path, orfalse if an error occurs. This information is<br />

cached; see clearstatcache( ).<br />

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

Copyright © 2002 O’Reilly & Associates, Inc. All rights reserved.<br />

fileinode | 399

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

Saved successfully!

Ooh no, something went wrong!