- fwrite: documentation ( source)
- tmpfile: documentation ( source)
- fopen: documentation ( source)
<?php
$file = '/dev/urandom';
$handle = fopen($file, 'r');
/*while ( TRUE )
{
$data = base64_encode(fread($handle, 200));
}*/
$tmp = tmpfile();
fwrite($tmp, 'hello');