Merhaba. dailymotion'dan video embed çeken bir botum var. son wp güncellemesinden sonra çalışmamaya başladı. şu hatayı vermekte.
Warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/....com/httpdocs/dailymotion.php on line 111
başarıyla eklendi.
yardımcı olabilecek var mı acaba? teşekkürler.
function.file-get-contents hatası
4
●416
- 11-01-2015, 15:14:16selam hocam. bot çalışıyordu. fakat yanılmıyorsam son wp güncellemesinden sonra hata vermeye başladı. bir kaç satırda sorun var sanırım.Ceu adlı üyeden alıntı: mesajı görüntüle
$baglan = siteConnect('http://www.dailymotion.com/user/./1', 'http://www.dailymotion.com/'); $b1 = explode('<div class="sd_video_preview media-img span-4"', $baglan); $s1 = count($b1); for($i = 1; $i < $s1; $i++){ $b2 = explode('</div>', $b1[$i]); $b3 = explode('href="', $b2[0]); $b4 = explode('"', $b3[1]); $videolink = 'http://www.dailymotion.com'.$b4[0]; // echo "$videolink <br />"; $giris = siteConnect($videolink, 'http://www.dailymotion.com/'); // echo $giris; preg_match('#<meta property="og\:description" content="(.*)" />#', $giris, $meta1); - 11-01-2015, 16:19:56Aşağıdaki gibi değiştirirsen sorunun düzelecektir. kolay gelsin.
$giris = siteConnect($videolink, 'http://www.dailymotion.com/'); preg_match_all('~<\s*meta\s+property="(og:[^"]+)"\s+content="([^"]*)~i', $giris, $matches); $videodesc = $matches[2][9]; $videokeys = $matches[2][9]; $videotits = $matches[2][0]; $videoimgs = $matches[2][8];