Re: include() and duplicate function definition
| From: | Peter Lind | Date: | Wed, 03 Nov 2010 11:29:26 +0000 |
| Subject: | Re: include() and duplicate function definition | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-309267@lists.php.net to get a copy of this message | ||
That's not going to happen. My point was you could check in the original
file if the function is defined and if not then define it.
On Nov 3, 2010 11:55 AM, "David Nelson" <commerce@traduction.biz> wrote:
> Hi Peter, :-)
>
> On Wed, Nov 3, 2010 at 18:44, Peter Lind <peter.e.lind@gmail.com> wrote:
>> You can check with function_exists to see if a function is already
defined.
>> If not, create it.
>
> The function is definitely already defined, I just need to replace it
> without touching the file in which it's defined...
>
> David Nelson