One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| <?php | |
| /** | |
| * Please be aware. This gist requires at least PHP 5.4 to run correctly. | |
| * Otherwise consider downgrading the $opts array code to the classic "array" syntax. | |
| */ | |
| function getMp3StreamTitle($streamingUrl, $interval, $offset = 0, $headers = true) | |
| { | |
| $needle = 'StreamTitle='; | |
| $ua = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36'; |
| /** | |
| * | |
| * Using CURL to download partial content from a URL | |
| * | |
| * @url file URL to download | |
| * @range_start Start range in bytes | |
| * @range_end End range in bytes | |
| * | |
| * | |
| * example: curl_get_content("http://www.example.org/some-file.zip",100,500) |