Welcome to WebmasterWorld Guest from 184.72.177.182

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Parse error: syntax error, unexpected T STRING

help me

     
10:30 am on May 6, 2013 (gmt 0)

New User

joined:May 6, 2013
posts:1
votes: 0


hey`
i keep getting this error
i dont know about php so can you help me

Parse error: syntax error, unexpected T_STRING in /home/appjakar/public_html/fiber.php on line 514


$perms=';


i have add put some ' at the code but it getting another error

sorry for my bad english :(

[edited by: jatar_k at 2:53 pm (utc) on May 8, 2013]
[edit reason] removed url [/edit]

4:20 pm on May 6, 2013 (gmt 0)

Senior Member

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 15, 2002
posts:6807
votes: 0


Welcome to Webmaster World!

I would look at line 514 (and perhaps a 5-10 lines prior and after) to see if you have missed something. Typically there would be a missing semicolon or quote (single or double).

Are you using an editor which color codes the script for you? Doing so is most helpful for catching simple parsing errors like this appears to be.
9:06 pm on May 6, 2013 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month

joined:Apr 9, 2011
posts:12700
votes: 244


Are you using an editor which color codes the script for you?

fwiw, mine flags line 513, consisting in full of
$perms=';

(one single quote) That is: $perms is in a different color from the normal variable-name color-- and then the entire remainder of the code goes into the color meant for strings, except for the bits that really are strings. It fixes itself when it gets to the later line
Recoded By X'1n73ct

--apparently quotation marks trump "comment" markup.

Ordinarily I would not venture to address a php question for fear it would get me unceremoniously booted from the Forums. But this happens to be an error message I recognize because I got it myself within the last day or two. It was T_something-else, but the underlying mistake was the same:
$variable-name = 'blahblah';
and then the line ends before you've delivered all of the "= 'blahblah';" component. In my case I'd accidentally deleted half of a line.
2:54 pm on May 8, 2013 (gmt 0)

Administrator

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 24, 2001
posts:15755
votes: 0


as lucy24 mentioned you should be fine if you replace

$perms=';

with

$perms='';

you were just missing the closing quote
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members