<?php
$mynetlink = file_get_contents("http://video.mynet.com/habervideo/Canli-yayinda-birbirlerine-girdiler/991323/");
$title = explode('<title>',$mynetlink);
$title = explode('</title>', $title[1]);
$link = explode('<embed src="',$mynetlink);
$link = explode('" type="application/x-shockwave-flash" wmode="transparent" allowscriptaccess="always" allowfullscreen="true" width="400" height="334"></embed>',$link[1]);
$baslik = explode('<meta property="og:title" content="',$mynetlink);
$baslik = explode('" />',$baslik[1]);
echo "<form action='gonder.php' method='post' >
<div align='center'>
<table border='0' cellpadding='0' cellspacing='0' width='67%' height='228' bordercolorlight='#D6D6D6' id='table1'>
<tr>
<td height='19' align='right'><b>Meta Tag</b></td>
<td width='10' height='19' align='center'>:</td>
<td width='450' height='19'>
<input type='text' name='baslik' size='64' value='$title[0]'></td>
</tr>
<tr>
<td height='19' align='right'><b>Başlık</b></td>
<td width='10' height='19' align='center'>:</td>
<td width='450' height='19'>
<input type='text' name='fgd' size='64' value='$baslik[0]'></td>
</tr>
<tr>
<td align='right' valign='top'><b>Video embed kodu</b></td>
<td width='10' align='center' valign='top'>:</td>
<td width='450' valign='top'>
<textarea rows='9' name='defsd' cols='53'><embed src='$link[0]' type='application/x-shockwave-flash' wmode='transparent' allowscriptaccess='always' allowfullscreen='true' width='400' height='334'></embed></textarea></td>
</tr>
</table>
</div>
</form>";
?>input text alanlarına koyma nedenim veri tabanına kaydecek olması ve hespini yapıyor çalışıyor ama şöyle bir sorun var en önemliside ooooben form yaptım formda linki yazacaz öyle gönderecek ve çekecekti. teoride buydu ama şöyle bişey oldu
$mynetlink = file_get_contents("http://video.mynet.com/habervideo/Canli-yayinda-birbirlerine-girdiler/991323/");burda gördüğünüz gibi dğeişkenden sonra mynet vidoenun linkini vermiş böyle güzel çalışıyor ama oraya formdan gelen değeri yazdır mak için input text adını yazınca hata veriyor hatada şu Warning: file_get_contents(mynetlink) [function.file-get-contents]: failed to open stream: No such file or directory in C:\wamp\www\video\admin\mynetdevam.php on line 3 Notice: Undefined offset: 1 in C:\wamp\www\video\admin\mynetdevam.php on line 6 Notice: Undefined offset: 1 in C:\wamp\www\video\admin\mynetdevam.php on line 9 Notice: Undefined offset: 1 in C:\wamp\www\video\admin\mynetdevam.php on line 12hata satırları şunlar
3 satır
$mynetlink = file_get_contents("mynetlink");6. satır$title = explode('</title>', $title[1]);9. satır$link = explode('" type="application/x-shockwave-flash" wmode="transparent" allowscriptaccess="always" allowfullscreen="true" width="400" height="334"></embed>',$link[1]);12 satır$baslik = explode('" />',$baslik[1]);ya lütfen yardımcı olun ya sabahtan beri uğraşıyorum bulamadım lütfen
