• 01-03-2010, 16:21:24
    #1
    Üyeliği durduruldu
    İnclude yapamadım bi türlü bi yardım eder misiniz

    Deneme.php
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>
    <?
    include("include.php");
    ?>
    <body>
    &Ccedil;ok sa&ccedil;ma yahu şu: <? print $deneme; ?> 
    </body>
    
    </html>
    include.php
    <php? 
    $deneme = "ben mi ?";
    ?>

    İnclude.php dosyasından deneme.php dosyasına veri çekmeye çalışıyorum ama yapamıyorum. nerede hata var ?
  • 01-03-2010, 16:34:41
    #2
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml"> 
    <head> 
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
    <title>Untitled Document</title> 
    </head> 
    <? 
    include('include.php'); 
    ?> 
    <body> 
    &Ccedil;ok sa&ccedil;ma yahu şu: <? print $deneme; ?>  
    </body> 
    
    </html>
    Ayrıca aynı dizindemi include.php dosyası?
  • 01-03-2010, 16:35:26
    #3
    Üyeliği durduruldu
    evet
  • 01-03-2010, 16:50:25
    #4
    hocam
    include.php nin içeriği böyleyse olmaz o iş
    Alıntı
    <php?
    $deneme = "ben mi ?";
    ?>
  • 01-03-2010, 16:54:09
    #5
    <?hp
    $deneme = "ben mi ?";
    ?>
  • 01-03-2010, 17:11:32
    #6
    Üyeliği durduruldu
    enc0der adlı üyeden alıntı: mesajı görüntüle
    <?hp
    $deneme = "ben mi ?";
    ?>
    Teşekkürler
    +rep
  • 01-03-2010, 17:37:44
    #7
    Üyeliği durduruldu
    HTML kod kullanınca include.php'de, sitede hata çıkıyor

    şöyle yazıyorum:

    $footer = "<a href="http://www.turkpatent.gov.tr/portal/default2.jsp?sayfa=280" class="style3">Mevzuatlar</a> Standart Marka™ Tüm hakları gizlidir &quot;Standart Marka&quot; tescillenmiş bir markadır. <a href="http://www.turkpatent.gov.tr/portal/default2.jsp?sayfa=280" class="style"></a>";
  • 01-03-2010, 17:40:09
    #8
    değerli hemşerim
    " işaretinden evvel \ kullanmalısın

    $footer = "<a href=\"http://www.turkpatent.gov.tr/....

    gibi
  • 01-03-2010, 20:28:45
    #9
    Kimlik doğrulama veya yönetimden onay bekliyor.
    localde <? ?> tagları çalışmaz <?php ?> olması gerekiyor