Reading mp4 files with PHP
问题 I'm trying to read mp4 file with PHP and what I'm doing now is this: <?php header("Content-Length: filesize"); readfile('file.mp4'); ?> but this way I can't skip or even go back until the video is not loaded 100%. Of course when I read directly from the file (video.mp4) everything goes well. Thanks. 回答1: You need to implement the skipping functionality yourself in PHP. This is a code snippet that will do that. <?php $path = 'file.mp4'; $size=filesize($path); $fm=@fopen($path,'rb'); if(!$fm) {