![]() |
|
#1
|
|||
|
|||
Errors?Hi,
I have phpbb 2 and transferred servers today. I am working on fixing up a portal for my board on the new server. In my file, board/login.php I get the following error: Parse error: parse error, unexpected T_STRING in /home/vigilant/public_html/board/login.php on line 138 Here is line 138 of that file: PHP Code:
And when i open board/index.php I get this error: Parse error: parse error, unexpected T_STRING in /home/vigilant/public_html/board/includes/page_header.php on line 145 Here are lines 140-147 of that file: (145 is the { after else on 144) PHP Code:
Any quick help appreciated as this needs to be solved quickly! Thanks. Last edited by cable_guy_67 : 04-Mar-2006 at 03:34.
Reason: Please surround php code with [php] ... [/php]
|
|
#2
|
|||
|
|||
Re: Errors?I'm still examining this code, however I did notice something from the first piece of code you posted. It may have some effect on the end as well. Here is my thought:
I pulled out this particular piece of the code, everything else looked fine: PHP Code:
The PHP will return a parse T_STRING error if a variable inside of the line itself cannot be found or recognized, in this case being $redirect and $phpEx. $redirect and $phpEx cannot be found either 1) because it isn't set right [not the case] or 2) because it is an invalid syntax for lookup [the case]. Try this: PHP Code:
Basically any variable code contained in PHP brackets needs to be contained first so it parses the data correctly. The {} brackets allow the $phpEx and $redirect variables to be interpreted before the rest of the line, kind of like brackets in mathematics. You can either use {} or \"\" like you already did for the line, but doing that might get messy. I just suggest using {} to make it much cleaner. I hope this is anywhere close to what you were looking for, and hope that it helps. I will keep looking for more... EDIT: PHP Code:
PHP Code:
Same thing....maybe all of the errors lie in that? I don't see anything else wrong... |
Recent GIDBlog
Developing GUIs with wxPython (Part 2) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Compiler errors | vital_101 | C Programming Language | 4 | 12-Jan-2006 13:53 |
| In Need of Some Serious Help...compiling errors [C++] | needcishelp | C++ Forum | 25 | 21-Dec-2005 01:26 |
| Help with compiler errors | Krandygrl00 | C++ Forum | 3 | 01-Jun-2005 07:45 |
| Linker errors with multiple file progam | nkhambal | C Programming Language | 2 | 24-Apr-2005 02:37 |
| Can somebody look at this and point out any errors to me | soulfly | C Programming Language | 7 | 31-Mar-2004 09:45 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The