- var_dump: documentation ( source)
- stream_get_meta_data: documentation ( source)
- tmpfile: documentation ( source)
- fopen: documentation ( source)
<?php
$h=tmpfile();
if($h===false){throw new Exception('tmpfile() failed!');};
$h=stream_get_meta_data($h);
$h=$h['uri'];
var_dump(fopen($h,'r'));