Re: Ques: Conflicting functions in two include files.

From: Date: Fri, 23 Jan 2004 16:56:05 +0000
Subject: Re: Ques: Conflicting functions in two include files.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-175536@lists.php.net to get a copy of this message
Al wrote:
I have a page that calls functions from two different include files. Unfortunately, some of the functions have the same name; but are slightly different. I know I can change the names of the conflicting functions; but, that is a bit of a chore. Is it possible to control from which include file the functions are used? I tried putting the include statement just before the function call, hoping the server would replace the functions with the new include. I'm using include_once. It didn't work.
include_once() is not going to let another include "overwrite" function names.
I tried putting the include file with the function call inside of a function. Didn't work, still executed the functions stated at the top of the page. Any suggestions?
Rename the functions, and save yourself the headaches down the road. -- By-Tor.com It's all about the Rush http://www.by-tor.com

« previous php.general (#175536) next »