Re: [PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
mplate?   the function you want to "overwrite", wont be > used, and therefore, wouldn't your app/template/whatever be updated > improperly than waht you expect it to be? Steve, maybe the above informs? In any case, the function to be overwritten is likely to remain fairly stabl

[PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
my explanation gives you any good ideas? Just to put the dots on the I's, the original "actions.php" contains a lot of *other* functions that I don't want to touch, and that I do want to leave exposed to the updates process. It's just one single function I want to hack..

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
ntly possible in PHP. Time for some lateral thinking. :-) David Nelson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
Hi Peter, :-) On Wed, Nov 3, 2010 at 18:44, Peter Lind 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... D

[PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
named? If the functions aren't named the same, my replacement function will never get called by the code that uses the WordPress theme code... > Try to create a new function and call the original function from there if > needed... Sadly, it wouldn't work for the above reason... But than

[PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
Hi, :-) I'm making a child theme for WordPress. I need to rewrite one function defined in "../sometheme/functions/actions.php" and put that rewritten function in "wp-content/themes/sometheme-child/functions/actions.php". But I want to preserve "../sometheme/functions/actions.php" unchanged in any