Advise me the most optimal way to save large files from php stdin, please. iOS developer sends me large video content to server and i have to store it in to files.
I read the stdin thread with video data and write it to the file. For example, in this way:
$handle = fopen("php://input", "rb"); while (!feof($handle)) { $http_raw_post_data .= fread($handle, 8192); } What function is better to use? file_get_contents or fread or something else?