I'm trying to use phpbb3 forums on my already existing website.
My website has its own registration system and i'm trying to use the user_add()
so upon register the user will be registered to both the website and the forums.
The problem is that I use a class named User
on my external webapp, and phpBB tries to create a class with the same name.
So i'm getting this:
PHP Fatal error: Cannot redeclare class user in /home/x/public_html/forum/includes/session.php on line 2360
Is there any way to find a workaround for this? I really don't want to change my class name.
Thanks,
There are PHP namespaces, if you're on 5.3.