- flush: documentation ( source)
- readfile: documentation ( source)
- ob_clean: documentation ( source)
- file_exists: documentation ( source)
<?php
// ANYTHING WRONG THIS CODE?
$file_path = get_template_directory().'/users/'.$_GET['user'].'/'.$_GET['file'];
if( file_exists($file_path) ) {
ob_clean();
flush();
readfile( $file_path );
}