7 Replies Latest reply on Jul 14, 2008 11:59 AM by Newsgroup_User

    Problems with including files

    ai&p
      Sorry, if such question has been already asked, but I still haven't found an answer.
      I have included some PHP code with HTML to my site however I can't see it using Design mode. I have "server-side includes - show file" turned on. I don't use "Dreamweaver Site".
      Please, help.
      Thanks

      PS. Sorry, if my English isn't very good, but I'm not a native speaker. ;)
        • 1. Re: Problems with including files
          bregent Most Valuable Participant
          Do your included pages include html, head or body tags? If those tags are in the parent page, then they should not also be in the included page.
          • 2. Re: Problems with including files
            ai&p Level 1
            Yes, my included files have tags like html, head, body etc., but there aren't such tags in the parent file
            • 3. Re: Problems with including files
              bregent Most Valuable Participant
              >Yes, my included files have tags like html, head, body etc., but there aren't such tags in the parent file

              What version of DW are you using? Earlier versions did not display properly in design mode if those tags were in the included files.
              • 4. Re: Problems with including files
                ai&p Level 1
                I am using Dreamweaver CS3
                • 5. Re: Problems with including files
                  Level 7
                  Can you show us the markup in your Header and Footer files, please?

                  --
                  Murray --- ICQ 71997575
                  Adobe Community Expert
                  (If you *MUST* email me, don't LAUGH when you do so!)
                  ==================
                  http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                  http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                  ==================


                  "ai&p" <webforumsuser@macromedia.com> wrote in message
                  news:g5cmdl$f69$1@forums.macromedia.com...
                  >I am using Dreamweaver CS3

                  • 6. Re: Problems with including files
                    ai&p Level 1
                    Of course
                    • 7. Re: Problems with including files
                      Level 7
                      Ouch....

                      <?

                      You know that PHP short tags are not supported in PHP5, right?

                      Can you tell me what this is - <link href="_/glowne.css"? Is that a leading
                      underscore? What does that do?

                      You know that this is not correct syntax for CSS, right - >
                      //background-color:black;? For comments in CSS you would want to use "/*
                      ... */".

                      What do you see in Design view with this page?

                      --
                      Murray --- ICQ 71997575
                      Adobe Community Expert
                      (If you *MUST* email me, don't LAUGH when you do so!)
                      ==================
                      http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                      http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                      ==================


                      "ai&p" <webforumsuser@macromedia.com> wrote in message
                      news:g5g199$6bs$1@forums.macromedia.com...
                      > Of course
                      >
                      > <?
                      > ob_start();
                      > session_start();
                      > include("incl/mysql.php");
                      > include("incl/funkcje.php");
                      >
                      > //SPRAWDZANIE ZALOGOWANIA
                      > if ($_SESSION["login"] && $_SESSION["id"] && $_SESSION["upr_adm"] &&
                      > $_SESSION["upr_lek"] && $_SESSION["imie_wolacz"]) {
                      >
                      > } else {
                      > header("Location: ../");
                      > }
                      >
                      > ?>
                      > <!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-2" />
                      > <title><? print($PageTitle); ?> -- Sanas</title>
                      > <link href="_/glowne.css" rel="stylesheet" type="text/css" />
                      > <link rel="stylesheet" type="text/css" href="_/form.css" />
                      > <style type="text/css">
                      >
                      > .main {
                      > width:200px;
                      > border:1px solid #d4d9dd;
                      > }
                      >
                      > .month {
                      > //background-color:black;
                      > font:bold 12pt;
                      > //olor:white;
                      > padding: 3px;
                      > }
                      >
                      > .daysofweek {
                      > background-color:gray;
                      > font:bold 10pt verdana;
                      > color:white;
                      > }
                      >
                      > .days {
                      > font-size: 12px;
                      > font-family:verdana;
                      > color:black;
                      > //background-color: lightyellow;
                      > padding: 2px;
                      > }
                      >
                      > .days #today{
                      > font-weight: bold;
                      > color: red;
                      > //background: #999900;
                      > }
                      >
                      > </style>
                      >
                      >
                      >
                      > </head>
                      >
                      > <body onload="goforit();">
                      > <div id="GLOWNA_RAMA">
                      > <table width="100%" border="0" cellpadding="0" cellspacing="0" id="TOP">
                      > <tr>
                      > <td width="37%"><img src="_/logo.jpg" width="359" height="130"
                      > /></td>
                      > <td width="31%" valign="bottom" class="adres" style="font-size:
                      > 110%">Przychodnia <em>Sanas</em><br />
                      > Al. Wolno?ci 15<br />
                      > 62-800 Kalisz<br />
                      > tel./fax 062 502 42 55</td>
                      > <td width="16%" class="adres">
                      >
                      > <!-- here was a javascript code but I have cut it -->
                      >
                      > <td width="16%" class="adres">Witaj, <?
                      > print($_SESSION["imie_wolacz"]);
                      > ?>!<br />
                      > <a href="dane.php">Twoje dane</a><br />
                      > <a href="../index.php">Wyloguj</a><br />
                      > <small>Uprawnienia lekarza: <? print($_SESSION["upr_lek"]); ?><br
                      > />Uprawnienia administratora: <? print($_SESSION["upr_adm"]); ?></small>
                      > </td>
                      > </tr>
                      > </table>
                      > <table width="100%" border="0" cellpadding="0" cellspacing="0"
                      > id="TOP_MENU">
                      > <tr>
                      > <td width="25%">
                      > <a href="wizyty_nowa.php" class="dorazne">Nowa wizyta</a>
                      > <a href="pacjenci_nowy.php" class="dorazne">Nowy pacjent</a>
                      > </td>
                      > <td width="72%" >
                      > <?
                      > if($_SESSION["upr_lek"] == "tak") {
                      > ?>
                      > <span class="wyroznienie">Lekarz</span> <a
                      > href="wizyty.php?mode=lekarz"
                      > <? if($PageType == "Lekarz_Wizyty") { print("class='zaznaczenie'"); }
                      > ?>>Wizyty</a> | <a href="pacjenci.php?mode=lekarz" <? if($PageType ==
                      > "Lekarz_Pacjenci") { print("class='zaznaczenie'"); } ?>>Moi pacjenci</a>
                      > <?
                      > }
                      > if($_SESSION["upr_adm"] == "tak") {
                      > ?>
                      > <span class="wyroznienie" style="margin-left:
                      > 15px;">Administrator</span>
                      > <a href="wizyty.php?mode=admin" <? if($PageType == "Administrator_Wizyty")
                      > {
                      > print("class='zaznaczenie'"); } ?>>Wizyty</a> | <a
                      > href="pacjenci.php?mode=admin" <? if($PageType ==
                      > "Administrator_Pacjenci") {
                      > print("class='zaznaczenie'"); } ?>>Pacjenci</a>
                      > <?
                      > }
                      >
                      > ?> </td>
                      > <td width="3%" style="text-align: right">
                      > <a href="#" class="dorazne" style="padding-left: 5px; padding-right:
                      > 5px;">?</a> </td>
                      > </tr>
                      > </table>
                      >
                      >
                      >
                      > --------------------- footer
                      >
                      > </div>
                      > </body>
                      >
                      >
                      >
                      > </html>
                      > <?
                      > ob_flush();
                      > ?>
                      >