• 02-11-2010, 19:21:03
    #1
    php de
    document.write('<?php    echo (" » \n  <a href=\"" . $rss_channel["ITEMS"][$i]["LINK"] . "\" target=\"_blank\">" . $rss_channel["ITEMS"][$i]["TITLE"] . "</a></b><br>"); ?>');
    şeklinde yazdırıyorum.

    html sayfada ise

    <script language="JavaScript" type="text/javascript" src="http://127.0.0.1/haberler.php"></script>
    şeklinde php sayfayı çagırıyorum. fakat almıyor. sorun nerede olabilir?
  • 02-11-2010, 21:40:55
    #2
    ~Aykut adlı üyeden alıntı: mesajı görüntüle
    php de
    document.write('<?php    echo (" » \n  <a href=\"" . $rss_channel["ITEMS"][$i]["LINK"] . "\" target=\"_blank\">" . $rss_channel["ITEMS"][$i]["TITLE"] . "</a></b><br>"); ?>');
    şeklinde yazdırıyorum.

    html sayfada ise

    <script language="JavaScript" type="text/javascript" src="http://127.0.0.1/haberler.php"></script>
    şeklinde php sayfayı çagırıyorum. fakat almıyor. sorun nerede olabilir?
    <script type="text/php" language="php" src="http://127.0.0.1/haberler.php"></script>
    Bu şekilde deneyin bir de.
  • 02-11-2010, 21:47:07
    #3
    <a href=\"" buradada kod hatası var
  • 02-11-2010, 21:47:47
    #4
    Üyeliği durduruldu
    haberler.php dosyasının içeriği nedir?

    document.write('<?php    echo (" » \n  <a href=\"" . $rss_channel["ITEMS"][$i]["LINK"] . "\" target=\"_blank\">" . $rss_channel["ITEMS"][$i]["TITLE"] . "</a></b><br>"); ?>');
    bu şekildeyse çalışması lazım diye düşünüyorum.
  • 02-11-2010, 22:57:00
    #5
    @ClubArkadas denedim olmadı.

    @ChatLakTurK rss haber okuyor. yazdığını denedim olmadı malesef.
  • 02-11-2010, 22:57:55
    #6
    @WebProgramming rss okuyucu hata vermiyor.
  • 02-11-2010, 23:53:54
    #7
    Üyeliği durduruldu
    ~Aykut adlı üyeden alıntı: mesajı görüntüle
    @ChatLakTurK rss haber okuyor. yazdığını denedim olmadı malesef.

    haberler.php dosyasının içeriğini yazarmısın.
  • 02-11-2010, 23:58:23
    #8
    Üyeliği durduruldu
    //PHP
    <script type="text/php"> // PHP code goes here </script>
    
    //JavaScript
    <script type="text/javascript"> var heading = document.getElementById("title"); heading.innerHTML = "Hello, World!"; </script>
    
    //PHP 
    <script type="text/php"> $heading = $document->getElementById("title"); $heading->innerHTML = "Hello, World!"; </script>
  • 03-11-2010, 17:46:08
    #9
    <script type="text/php"> // PHP code goes here </script>

    bunu

    <script type="text/php"> // PHP code goes here
    </script>

    yap. altaki scriptin okunmasını engelliyor // olduğu için scriptin kapatılışı gözükmüyor.

    yalnız php server side olduğundan hangi browser yorumlayacak type="text/php" bu olayı anlamadım pek. php görmeyeli baya değişti heralde 2 senedir php yazmadım =)