File_get_contents()
| From: | Jeff McKeon | Date: | Thu, 07 Apr 2005 12:03:21 +0000 |
| Subject: | File_get_contents() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-212522@lists.php.net to get a copy of this message | ||
Does anyone know if it's possible to have file_get_contents() accept a
file handle?
$handle=fopen("/tmp/file","r");
file_get_contents($handle);
This doesn't seem to work for me, it generates an error about first
parameter needing to be a string.
I've tried:
file_get_contents('{$handle}');
But that doesn't work either...
Thanks,
jeff