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. 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) { // You can also redirect here header ("HTTP/1.0 404 Not Found"); die(); } $begin=0; $end=$size; if(isset($