note 21734 added to function.readfile
| From: | wgardner at hotmail dot com | Date: | Fri, 24 May 2002 18:27:18 +0000 |
| Subject: | note 21734 added to function.readfile | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31005@lists.php.net to get a copy of this message | ||
This is my first contribution to any forum, so hopefully someone finds this useful :) ...geniuses
reading please be easy on me...
Readfile didn't parse my included PHP file. So, I'm concluding that if the file you are
trying to read thru is php YOU MUST USE fopen() and then passthru() if you want the php file you are
calling parsed.
$header = fopen("/library/header.php", "r");
fpassthru($header);
--
http://www.php.net/manual/en/function.readfile.php
http://master.php.net/manage/user-notes.php?action=edit+21734
http://master.php.net/manage/user-notes.php?action=delete+21734
http://master.php.net/manage/user-notes.php?action=reject+21734