Blog

Download Dynamic Download Links

folder_openCoding, Snippets
commentNo Comments
PHP $file_url = 'https://webapi.vivotek.com/api/DownloadCenter/Download/global?p1=B96CdIFf5Mh4r7e%2B3jGe1g==&p2=j199RdC0wOvZ8pPmTck8Tg=='; $file_ext = pathinfo($file_url, PATHINFO_EXTENSION); // to get extension $file_name = pathinfo($file_url, PATHINFO_FILENAME); echo $file_ext, '<br />';echo $file_name; $curl = curl_init(); $headers = array(); curl_setopt($curl, CURLOPT_URL, $file_url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_TIMEOUT, 50); curl_setopt($curl, CURLOPT_HEADERFUNCTION, function($curl, $header)…
Click Me
Menu