Parse Error: Syntax Error, Unexpected T_if

Started on the old forum in July 2008 · view the original in the archive · old links redirect here

3 replies · 1,065 views · started 18 years ago · 1 min read

3 participants
laro696 Developer · 205 posts #1

This is the error i get

Parse error: syntax error, unexpected T_IF in /home/killer/public_html/wincms/index.php on line 267

and here's line 267

if($user['level']>12){require('apanel/comm.php');}

Can anyone help me please??

laro696 Developer · 205 posts #4

I googled it a bit, and found that when you get unexpected T_IF, the problem can sometimes be a few lines up. But anyway, please close this topic, it was my own stupidness! Lol it's a russian script, so when i translated it i must have deleted a small bit. I uploaded the original russian index.php and it worked perfectly.

Thanks for the replies 🙂

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close