export file stream in PHP