mgd_stat_attachment

Name

mgd_stat_attachment -- Gives information about the attachment.

Synopsis

array mgd_stat_attachment(int id);

Description

Minimum version: Midgard 1.4 (Bifrost)

Gives the same information as the stat PHP function for the attachment with id id.

Returns an array with the following information: device, inode, inode protection mode, number of links, user id of owner, group id owner, [device type if inode device, ]size in bytes, time of last access, time of last modification, time of last change, [blocksize for filesystem I/O,] number of blocks allocated.

Returns false on failure.

Example

<?php
  mgd_stat_attachment(13);
?>