note 21734 deleted from function.readfile by jimw
| From: | jimw@php.net | Date: | Wed, 29 May 2002 23:47:35 +0000 |
| Subject: | note 21734 deleted from function.readfile by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-31175@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);