Salam belə bir problemlə üzləşirəm.
http://mp3.bass.az/Q20QyiW_XGQ_namiq-qaracuxurlu-nefes-qədər.html
Burada video kimi yükləmək üçün olan linklərdə 0kb 0mb göstərir. Gərək səhifəni bir neçə dəfə yeniləyəsən ki qaydasına düşsün. Bu problemi aradan necə qaldıra bilərəm. ?






Verilmiş cavablar və yazılan şərhlər (2 cavab var)
0
Saytın rəhbərliyinə yazın ki saytınızda problem var, düzəltsinlər. Yox əgər sayt sizindirsə, o halda kod hissədə bu işə cavabdeh kodu analiz etmək gərəkdir, kənardan heç vaxt bilinə bilməz bunun səbəbi
0
echo '<div class="authnew"><table id="customers"> <tr> <th>Format</th> <th>Keyfiyyət</th> <th>Həcmi</th> <th>Yükləmə linkləri</th> </tr>'; function get_size_Download($url) { $my_ch = curl_init(); curl_setopt($my_ch, CURLOPT_URL,$url); curl_setopt($my_ch, CURLOPT_HEADER, true); curl_setopt($my_ch, CURLOPT_NOBODY, true); curl_setopt($my_ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($my_ch, CURLOPT_TIMEOUT, 10); $r = curl_exec($my_ch); foreach(explode("\n", $r) as $header) { if(strpos($header, 'Content-Length:') === 0) { return trim(substr($header,16)); } } return ''; } function formatBytes_Download($bytes, $precision = 2) { $units = array('B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'); $bytes = max($bytes, 0); $pow = floor(($bytes ? log($bytes) : 0) / log(1024)); $pow = min($pow, count($units) - 1); $bytes /= pow(1024, $pow); return round($bytes, $precision) . ' ' . $units[$pow]; } parse_str(file_get_contents("http://youtube.com/get_video_info?video_id=$id"),$info); //decode the data $streams = $info['url_encoded_fmt_stream_map']; //the video's location info $streams = explode(',',$streams); foreach($streams as $stream){ parse_str($stream,$data); $type = explode(";",$data["type"]); $type = str_replace("video/","",$type[0]); $type = ucfirst($type); echo "<tr>"; echo "<td>{$type}</td>"; $size = get_size_Download(urldecode($data["url"])); $filesize = formatBytes_Download($size); echo "<td>{$data["quality"]}</td>"; echo "<td>{$filesize}</td>"; echo '<td><a style="margin: 0px 0px;float: left" class="btn btn-raised btn-warning btn-sm">Yüklə</a></td> '; echo "</tr>"; } echo '</table></div>';Sual verin
Cavab verin