NYCPHP Meetup

NYPHP.org

[nycphp-talk] Eliminating namespace conflicts between scripts?

Daniel Convissor danielc at analysisandsolutions.com
Thu Aug 16 20:33:45 EDT 2007


On Thu, Aug 16, 2007 at 06:30:02AM -0400, Cliff Hirsch wrote:
> I am tying a large open source ap into my main ap. This ap has numerous
> global variable and countless includes and classless functions. Thus, the
> chances for a namespace conflict with my primary application are high.

So, why not add a prefix to your functions and global variable names?  
Search, replace, fixed.

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409



More information about the talk mailing list