View Single Post
Old 03-16-2009, 06:34 AM   #1 (permalink)
lucid
The Wanderer
 
lucid's Avatar
 
Join Date: Apr 2008
Posts: 6
Thanks: 0
lucid is on a distinguished road
Default 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?
lucid is offline  
Reply With Quote