Исходный код вот такой: <?php function convert_yd_url($url) { $url = urlencode($url); $url = "https://cloud-api.yandex.net:443/v1/disk/public/resources/download?public_key=" . $url; $headers = array(); $handle = curl_init(); curl_setopt($handle, CURLOPT_URL, $url); curl_setopt($handle, CURLOPT_HTTPHEADER, $headers); curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($handle, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($handle); $code = curl_getinfo($handle, CURLINFO_HTTP_CODE); $res = ""; if($code == 200) { $response = json_decode($response, true); $res = $response["href"]; } return($res); } $url = "https://disk.yandex.ru/i/8d2oM6s3jj52uQ"; $url = convert_yd_url($url); ?> <img src="<?php echo $url;?>"> Локально работает, вот так - https://solntsevam.ru/yandex.disk/show.php не работает