Parse error: syntax error, unexpected T_VARIABLE on this line
//----------------------------------------------------------------------------------------
// WARNING do not edit below this line
$site="http://"; this line is the error

$site.= $_SERVER["HTTP_HOST"];

$sitexml = $site."/";

$full = $_SERVER["REQUEST_URI"];

If I comment line out the parse error drops to the next line. Thanks for your help.

    The error actually lies before that line. It just happens to be detected on that line.

      Ok where is the error? I don't see it, and thanks for the quick reply.

        Ok where is the error? I don't see it, and thanks for the quick reply.

        You have to post the code before that line.

          Aw I see OK do you want it all or just a few lines, there is alot of information.

            Most likely the problem is in the last actual PHP command before that line, so probably a half dozen lines before the error line should be enough. (I'm putting my money on a missing semi-colon at the end of the last command before that one. 🙂 )

              Aw I see OK do you want it all or just a few lines, there is alot of information.

              A few lines first. If you can, post the smallest and simplest script that demonstrates the error.

                You would have made lots of money, you are the true PHP Witch. There was a missing semicolon! Thanks alot!!!

                  You would have made lots of money, you are the true PHP Witch. There was a missing semicolon! Thanks alot!!!

                  Actually, NogDog made that bet.

                  Remember to mark this thread as resolved using the thread tools.

                    Write a Reply...