03-16-2009, 06:34 AM
|
#1 (permalink)
|
|
The Wanderer
Join Date: Apr 2008
Posts: 6
Thanks: 0
|
Help with conflicting function names
I've made my site, but I'm trying to integrate MyBB in as well. Problem is, they use the function redirect() and add_breadcrumb(), and so do I. When I include my header file into MyBB (to get the user info or whatever) it includes my function file, which then gives me a 'cannot redeclare' etc.
Is there a way to either overwrite or 'cancel out' my functions? I don't really want to have to fundamentally change the entire codebase especially since things like redirect() are pretty common names.
I've looked into namespaces but don't know if they're perfect for my problem. I'm also only using PHP 5.2.5 at the moment so I don't think they're available.
Any options? 
|
|
|
|