sytax error when publishing first site

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • barbroberts
    Sergeant Major

    • Feb 2007
    • 91

    sytax error when publishing first site

    HI,
    I am relatively new to the forum. Serveral people here have already helped me and I hope someone will help again. I read the information about using php in the menu and footer. I thought I did it right, so today I published the menu, footer, and index pages.

    Am getting a page showing my template with nothing on it except:
    Parse error, sytax errror, unexpected $end in.....................

    Parse error: syntax error, unexpected $end in /home/pfvgmdxy/public_html/footer.php on line
    www.elizabethbaileyportraits.com

    I think the error is in the footer PHP because the instructions weren't laid out as clearly and I know so little that I need precise instruction.

    My monitor colors are not set right. On another site, which I thought had a beautiful soft green, Beth told me that it was VERY green, LOL. I changed it to ivory to make her stop laughing but now I'm afraid that my template for this site is too bold. Would appreciate comments on the colors you can see. Never to late to change it...

    Thank you in advance.
    Barbara
    http://www.gardenpartyteas.com
    http://www.elizabethbaileyportraits.com

  • Watdaflip
    Major General

    • Sep 2005
    • 2116

    #2
    Re: sytax error when publishing first site

    post the code for the footer

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

    Comment

    • barbroberts
      Sergeant Major

      • Feb 2007
      • 91

      #3
      Re: sytax error when publishing first site

      This is what I put in the footer:
      <center><font face="verdana" color="666666" size="1">Elizabeth Bailey Portraits<br>
      Represented by Garden Party Teas, Ltd. Co.<br>
      Bardstown, KY 40004<br>
      502-541-1844<BR><BR>
      <h3>Convenient to the Washington DC area 20194</h3></center><br>
      <center>The original oil paintings on this website were all created and copyrighted by<br> Elizabeth R. Bailey.<br>Other than the owners of the portraits presented here,<br>use of these images or their reproduction by any other <br>individual or organization is strictly prohibited.<br><p>
      <font size="2" face="Verdana"> <b>

      When making the PHP for the footer, I put this
      <? function footer() { ?>
      in Start of Page HTML

      and this in End of Page:
      <?php
      include ("footer.php");
      footer();
      ?>

      I published the menu and the footer php files first and then the index file. When I saw the error on the published page, I double checked my work and realized that I did not place the footer html block in the upper left corner. I moved it, saved the page and republished. No change, so I went into the ftp manager and deleted the footer and published it again. Same error message but it changed from indicating line 26 to 22. ???

      I really want to cancel with my former host by tomorrow.

      Barbara
      Barbara
      http://www.gardenpartyteas.com
      http://www.elizabethbaileyportraits.com

      Comment

      • barbroberts
        Sergeant Major

        • Feb 2007
        • 91

        #4
        Re: sytax error when publishing first site

        I just went to my web site hoping that the problem had just gone away and voila!, my old site is there instead!

        I redirected the URL this morning and could see the BV template with the error message. Now the old site is back. How is that possible?
        Barbara
        http://www.gardenpartyteas.com
        http://www.elizabethbaileyportraits.com

        Comment

        • navaldesign
          General & Forum Moderator

          • Oct 2005
          • 12080

          #5
          Re: sytax error when publishing first site

          No that's wrong. At the end of the page code you need to place

          <?
          }

          ?>


          You have mixed the two codes, the one that goes in the footer definition page, and the one that goes in the page that is calling the footer. Please have a look again at the tutorial.

          I cannot answer on the second question about the old site. Maybe you have republished the old page, or your browser is cacheing.
          Navaldesign
          Logger Lite: Low Cost, Customizable, multifeatured Login script
          Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
          DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
          Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

          Comment

          Working...
          X