Results 1 to 5 of 5

Thread: sytax error when publishing first site
      
   

  1. #1
    barbroberts's Avatar
    barbroberts is offline Sergeant Major
    Join Date
    Feb 2007
    Location
    the beautiful state of Kentucky
    Posts
    91

    Default 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.

  2. #2
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default 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

  3. #3
    barbroberts's Avatar
    barbroberts is offline Sergeant Major
    Join Date
    Feb 2007
    Location
    the beautiful state of Kentucky
    Posts
    91

    Default 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

  4. #4
    barbroberts's Avatar
    barbroberts is offline Sergeant Major
    Join Date
    Feb 2007
    Location
    the beautiful state of Kentucky
    Posts
    91

    Question 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?

  5. #5
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default 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!


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49