| Term | Definition |
|
fopen($file, 'r') r(read) w (write) a(append) |
open the file for read |
|
fread($fh, filesize($file)) |
read file contents |
|
fclose($fh) |
close $fh filehandler |
|
file($file) |
reads a file into an array |
|
file_get_contents($file) |
read a file into a string |
|
include() |
lnclude code from another file , like copy-paste |
|
include_once() |
include only once |
|
require() |
like include, but results in fatal error |
|
fwrite($fh, "text...!\n") |
write to afile (like print FILE "..." in perl) |
|
file_put_contents($filename, "text") |
write directly to filename! (php5) |
|
file_exists() |
check if file exists |
|
is_dir() |
check if is a directory |
|
is_file() |
check if regular file |
|
is_link() |
check if symbolic link |
|
filemtime() |
gets last modification time of file |
|
fileatime() |
last access time of file |
|
nl2br($line) |
new line (\n) into <br/> |
| Add or remove terms from this set |