get_file_info()

get_file_info($file[, $returned_values = array('name', 'server_path', 'size', 'date')])

Parameters:
  • $file (string) – File path
  • $returned_values (array) – What type of info to return
Returns:

An array containing info on the specified file or FALSE on failure

Return type:

array

Given a file and path, returns (optionally) the name, path, size and date modified information attributes for a file. Second parameter allows you to explicitly declare what information you want returned.

Valid $returned_values options are: name, size, date, readable, writeable, executable and fileperms.

doc_CodeIgniter
2016-10-15 16:32:23
Comments
Leave a Comment

Please login to continue.