note 93689 added to function.fread
| From: | jakefree at verizon dot net | Date: | Wed, 23 Sep 2009 01:23:14 +0000 |
| Subject: | note 93689 added to function.fread | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-160960@lists.php.net to get a copy of this message | ||
If you just want to output the contents of a text file, use the include or require statements
instead. They are not functions so they take up less overhead Also, they are easier to use, one
line(command) versus three.
Example fread()
<textarea>
<?
$fh = fopen("textfile.txt", "r");
fread($fh);
fclose($fh);
?>
</textarea>
VERSUS:
<textarea><? include("textfile.txt"); ?></textarea>
----
Server IP: 64.71.164.2
Probable Submitter: 71.164.68.102
----
Manual Page -- http://www.php.net/manual/en/function.fread.php
Edit -- https://master.php.net/note/edit/93689
Del: integrated -- https://master.php.net/note/delete/93689/integrated
Del: useless -- https://master.php.net/note/delete/93689/useless
Del: bad code -- https://master.php.net/note/delete/93689/bad+code
Del: spam -- https://master.php.net/note/delete/93689/spam
Del: non-english -- https://master.php.net/note/delete/93689/non-english
Del: in docs -- https://master.php.net/note/delete/93689/in+docs
Del: other reasons-- https://master.php.net/note/delete/93689
Reject -- https://master.php.net/note/reject/93689
Search -- https://master.php.net/manage/user-notes.php