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!
I don't think that adding brackets around the file name will make any difference.
The error is telling you that there isn't a method "set_comments_per_page" in the class "poll". You may have made a mistake in entering the name of the method - maybe it should be "comments_per_page" or something. If it isn't a spelling mistake, then the problem is that the class does not contain the method you want to use.
Seems to me that you are trying to use code devised by someone else. Can't the author of the code help sort out this problem?
before you actually call the object. It doesn't make a lot of sense however, and I'm not familiar with the class you're implementing. Any chance you wanna send us what's in the file you're inclding?