Parse error: parse error, unexpected T_STRING, expecting T_O

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tcl4p
Forum Newbie
Posts: 15
Joined: Mon Apr 02, 2007 9:28 am

Parse error: parse error, unexpected T_STRING, expecting T_O

Post by tcl4p »

I'm getting this error on the line where the class starts ( { ) when I rewrote a php to use a class. I should mention I do not get this error on my local machine using windows/apache and php5. Does this have something to do with my ISP's settings. I know both are using php 5. If anyone could can supply any information on this error I would appreciate it.

Thanks,
Tom
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Thre are six tokens starting with T_O
T_OBJECT_CAST
T_OBJECT_OPERATOR
T_OLD_FUNCTION
T_OPEN_TAG
T_OPEN_TAG_WITH_ECHO
T_OR_EQUAL
which one is it?
May we see the code?
Post Reply