note 93688 added to function.fread

From: Date: Wed, 23 Sep 2009 01:23:09 +0000
Subject: note 93688 added to function.fread
Groups: php.notes 
Request: Send a blank email to php-notes+get-160959@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/93688 Del: integrated -- https://master.php.net/note/delete/93688/integrated Del: useless -- https://master.php.net/note/delete/93688/useless Del: bad code -- https://master.php.net/note/delete/93688/bad+code Del: spam -- https://master.php.net/note/delete/93688/spam Del: non-english -- https://master.php.net/note/delete/93688/non-english Del: in docs -- https://master.php.net/note/delete/93688/in+docs Del: other reasons-- https://master.php.net/note/delete/93688 Reject -- https://master.php.net/note/reject/93688 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#160959) next »