PHP/file/meta

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< PHP‎ | file
Revision as of 21:59, 30 June 2022 by Woozle (talk | contribs) (Created page with "{{fmt/title|PHP file metadata access}} {{:PHP/file/NAV}} ==Functions== ===Read Meta=== * [https://www.php.net/manual/en/function.file-exists <code>file_exists()</code>] &ndash...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
PHP file metadata access

PHP File fx()

Functions

Read Meta

bool condition-checks

  • is_dir() — Tells whether the filename is a directory
  • is_executable() — Tells whether the filename is executable
  • is_file() — Tells whether the filename is a regular file
  • is_link() — Tells whether the filename is a symbolic link
  • is_readable() — Tells whether a file exists and is readable
  • is_uploaded_file() — Tells whether the file was uploaded via HTTP POST
  • is_writable() — Tells whether the filename is writable
  • is_writeable() — Alias of is_writable

Write Meta

  • chgrp() — Changes file group
  • chmod() — Changes file mode
  • chown() — Changes file owner
  • clearstatcache() — Clears file status cache
  • disk_free_space() — Returns available space on filesystem or disk partition
  • disk_total_space() — Returns the total size of a filesystem or disk partition
  • lchgrp() — Changes group ownership of symlink
  • lchown() — Changes user ownership of symlink