• 15-10-2007, 18:57:47
    #1
    <?php
    
    if(empty($adres)) {
    echo "<embed src="http://www.youtube.com/v/<?php echo $_GET[video]; ?>&autoplay=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed>";
    } else {
    echo "<embed src="flvplayer.swf?file=<?php echo $adres; ?>&amp;autostart=true" quality="high" bgcolor="#ffffff" allowfullscreen="true" width="450" height="370"></embed>";
    }
    
     
    ?>
    Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in ....

    videonun flvsi varsa playerimde yoksa embed kodları çalışsın istiyorum her şey tamam burda takılıp kaldım
  • 15-10-2007, 19:58:17
    #2
    echo içerisinde yazdırdığın çifttırnakları \" şeklinde yazdırmalısın.
  • 15-10-2007, 22:34:45
    #3
    <?php
    if(empty($adres)) {
    ?>
    <embed src="http://www.youtube.com/v/<?php echo $_GET[video]; ?>&autoplay=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed>
    <?php
    } else {
    ?>
    <embed src="flvplayer.swf?file=<?php echo $adres; ?>&amp;autostart=true" quality="high" bgcolor="#ffffff" allowfullscreen="true" width="450" height="370"></embed>
    <?php
    }
    ?>
    Ya komple php kodları kullanıp yapacaksın yada değişkenleri php kodu ile yazacaksın. Sen hem php kodu ile tamamını yazmışsın hemde aradaki değişkenleri tekrar echo ile php kodu şeklinde yazmışsın.
  • 16-10-2007, 00:22:39
    #4
    <embed src="http://www.youtube.com/v/<?php echo $_GET[video]; ?>&autoplay=1' type='application/x-shockwave-flash' wmode='transparent' width='425' height='350'></embed>
    embedleri bu şekilde tekrardan düzenledim hata vermedi çalıştı ama ...

    her koşulda ya kendi playerini yada benim playeri kullanıyor du
    yani if empty nedense yaramadı işe bende video indirme scriptlerinden birini
    editledim ve include ettim

    ilginiz için teşekkür ederim