- var_dump: documentation ( source)
- stream_get_meta_data: documentation ( source)
- tmpfile: documentation ( source)
- file_exists: documentation ( source)
<?php
$file_location = stream_get_meta_data(tmpfile());
var_dump($file_location, file_exists($file_location));