There is a link to download and save the file, do not tell me how? First Kurl, and then fwrite?
$ch = curl_init($url); $str = $singer.'_'.$name; $str = mb_strtolower($str, 'UTF-8'); $str = $id.'_'.$str; $fp = fopen('../music/'.$str.'.mp3', 'wb'); curl_setopt($ch, CURLOPT_FILE, $fp); curl_setopt($ch, CURLOPT_HEADER, 0); curl_exec($ch); curl_close($ch); fclose($fp);
Source: https://ru.stackoverflow.com/questions/729788/More articles:Will there be conflicts between the Angulyarovsky route and the reactor one?PHP: throw new Exception after Fatal ErrorChecking characters / numbers read from a text fileFiltering with WP_Query in WordPressHow to hide the rows of the table?How many tabs site is open?Test data classUnable to override get_current_user_role () (wordpress)How to change the physics of folding / opening AppBarLayout?Passing values to PasswordBox from ViewModel C # WPF MVVMAll Articles