I need to develop a PHP script to download streaming videos from a popular video sharing website.
Given a direct URL to watch a video as input, the script shall perform web scraping, find the target video, and save to a specified folder/file name.
1.)The script needs to be written in PHP 5.2.6.
2.)It needs to be this specific revision. Not newer or older.
[3.)It needs to be implemented as class method.
4.) The script needs to directly save to disk, without copying to memory.