File_get_contents()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux