Parsing Video Files in PHP
Let's parse a video file:
<?php
$data = file_get_contents('http://targ.loc/video.mp4');
file_put_contents('video.mp4', $data);
?>
Create a page with the following markup, placing a working video file:
<div>
<video>
<source src="/video.mp4">
</video>
</div>
Parse the page along with the video file.