Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
factored out read_whole_file into basics.php
[wfpl.git]
/
basics.php
1
<?php
2
3
function read_whole_file($name) {
4
$fd = fopen($name, 'r');
5
if($fd === false) {
6
die("Failed to read file: '$name'");
7
}
8
$temp = fread($fd, filesize($name));
9
fclose($fd);
10
return $temp;
11
}
12
13
?>