syntax error, unexpected $end in ndex.php on line 127
Expand Post »
Hey everyone. I just got my server up and running and I programed my database, or so I thought. I tried uploading it and running it but my index.php gives me "syntax error, unexpected $end in index.php on line 127". My code is below. Can anyone help?? Thanks!
Re: syntax error, unexpected $end in ndex.php on line 127
Just some small errors in placements of your php open and close tags you have some php code outside of the tags, and some HTML tags in wrong spots.: change the end to this and it should work for you.
Re: syntax error, unexpected $end in ndex.php on line 127
Ahh thank you. That fixed it up. But now I have another error. Its in my file that creates a PHP session.
It gives me this error: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in session.php on line 59
Ahh thank you. That fixed it up. But now I have another error. Its in my file that creates a PHP session.
It gives me this error: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in session.php on line 59
The line numbers given for PHP parse errors are usually incorrect. Most likely the parse error occurred on the line just before the one given (line 58).
looks ok. GUEST_NAME should be a constant. The only error that could be thrown by that line is if GUEST_NAME is not defined. It would be an E_NOTICE level error though which means its a precaution.
Re: syntax error, unexpected $end in ndex.php on line 127
My bad for repostng my suggestion I miss read the page. I saw the quote and though BareFoot posted that it had fixed it but she got same error elsewhere. Hence why I resuggested what I had mentioned earlier.
P.S. No need for the personal attacks I was just trying to help out. I did mention that I THINK it is a variable if it is suppose to be a constant than I am odviosuly wrong. I agree that the error may be just before the quoted line.
My bad for repostng my suggestion I miss read the page. I saw the quote and though BareFoot posted that it had fixed it but she got same error elsewhere. Hence why I resuggested what I had mentioned earlier.
P.S. No need for the personal attacks I was just trying to help out. I did mention that I THINK it is a variable if it is suppose to be a constant than I am odviosuly wrong. I agree that the error may be just before the quoted line.
You really think that was a personal attack? :eek:
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.