Skip navigation
Currently Being Moderated

PHP Help - Parse error: syntax error, unexpected T_VARIABLE

Nov 4, 2010 9:09 AM

Hi,

 

Just wiondered if anyone can help, I have edited the files as requested:-

 

// 1. Enter the name of your slideshow
            $slideshow = "HolyportFC"
           
            // 2. Enter your site's URL (without trailing slash)
            $siteURL = "http://www.thevillagers.co.uk"
           
            // 3. Enter the absolute path of your site on the server (without trailing slash)
            $sitePath = "home/thevilla/public_html"
           
            // Include the slideshow
            include_once($sitePath."/fpss/fpss.php"); // DO NO EDIT THIS LINE

 

But on viewing the PHP example I get:-


Parse error:  syntax error, unexpected T_VARIABLE in /home/thevilla/public_html/example.php on line 43

 

Just wondered if anyone could point me to my error?

 

Thanks,

 

Richard

 
Replies
  • Currently Being Moderated
    Nov 4, 2010 9:23 AM   in reply to rjtyrell

    I'm not a mind reader: don't know what steps you're referring to or what your code is, especially on line 43 where the error message occurs. It's helpful if you describe exactly what you're doing and provide your code. Put a semicolon after each line that declares a variable hence the error message unexpected variable

     

    for example:

     

    $slideshow = "HolyportFC";

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points