note 29549 deleted from function.readfile by didou

From: Date: Wed, 13 Aug 2003 00:11:52 +0000
Subject: note 29549 deleted from function.readfile by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-54049@lists.php.net to get a copy of this message
Note Submitter: Colin ---- In response to the above where someone commented as to why you get a strange number at the end if you type: echo readfile($filename) The reason you get a weird number is that this is the return value of the function. From the definition the function will automatically output the contents of the file (echo is implied). $bytes = readfile($filename) will output the file and store the number of bytes outputted in $bytes. Hope this saves confusion for some folks.

« previous php.notes (#54049) next »