Set: php file functions

Familiarize

Learn

Test

Play Scatter

Play Space Race

Combine with other sets Login to add to Favorites
Print: Term List | Flashcards Editing not allowed
Export Deleting not allowed

Sharing

With group: None (edit)
HTML link to set: Plain link:
Share on Facebook Share on MySpace

All 17 Terms

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

Set Information

Terms 17
Creator Eyale
Created February 20, 2007
Groups None
Tags write, read, file, php
Access Anyone
Edit Creator Only
Pop out

Discuss

No Messages
Last Message: never

You must be logged in to discuss this set.