note 39121 added to function.file

From: Date: Sat, 17 Jan 2004 21:17:12 +0000
Subject: note 39121 added to function.file
Groups: php.notes 
Request: Send a blank email to php-notes+get-63752@lists.php.net to get a copy of this message
Here's what I use to read a file and put it's contents into a string: <?php function read_file($filename) { return join("",file($filename)); } ?> ---- Manual Page -- http://www.php.net/manual/en/function.file.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39121 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39121&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39121&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#63752) next »