Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have this error on line 28 which is below.

private loadText() { $this->text = $wiki->getpage($this->page);}

The surrounding code can be seen below

public function parse() { $this->parser = new parser($page,$this->getText()); $this->parser->parse();}
// private functions
private loadText() { $this->text = $wiki->getpage($this->page);} 
private parseNamespace(){...

I have can't see the problem and my only guess is that it is something to do with $this->

share|improve this question
2  
Everytime I read "PHP Parse error" in the title of a SO-question I think to myself: "Why don't you use an IDE?" So, why don't you use and IDE, that marks syntax error right in the editor pane? – KingCrunch Jan 23 at 22:43
what PHP IDE would you suggest? – mr.user1065741 Jan 23 at 22:45
Any ;) It's completely up to you. I don't know a PHP-IDE, that is not able to find syntax errors. So there are (probably incomplete) Eclipse/PDT, Netbeans, PhpStorm (my personal favorite) and many others I don't remember yet. – KingCrunch Jan 23 at 22:49

closed as too localized by mario, AD7six, Jocelyn, Neolisk, Ram kiran Jan 24 at 3:01

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

up vote 4 down vote accepted

Your forgot function after every private-keyword. Interestingly you did it right for the one public method.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.