Re: Fun with Functions..

From: Date: Thu, 19 Apr 2001 14:29:21 +0000
Subject: Re: Fun with Functions..
References: 1  Groups: php.qa 
Request: Send a blank email to php-qa+get-2831@lists.php.net to get a copy of this message
This list is for the PHP Quality Assurance team. A better place for your questions would be the PHP General mailing list. --zak ----- Original Message ----- From: "Corey Frang" <gnarf@gnarf.net> To: <php-qa@lists.php.net> Sent: Thursday, April 19, 2001 8:23 AM Subject: [PHP-QA] Fun with Functions.. > Here is the deal.. I'm trying to include a site specific show_header() > function.. The database query includes a file depending on the result. So, > if they want to redefine it, in their include file they put: > > function show_header() { > // generic header stuffs... > } > > and in the global include file, >I< put this: > > function main_show_header() { > > ?> > > HEADER!!! <br> > > <? > > } > > if (!function_exists("show_header")) { > > echo "create me a function?"; > > function show_header() { echo "callin my superior..."; main_show_header(); } > > } > > > > Now for some reason... the function show_header() isn't getting called, or > isn't calling main_show_header()... > > > > I see "create me a function" but i don't see "callin my superior.." or > "HEADER!!!" > > > > HELP!! (please respond with e-mail.. i don't wanna have to look through the > newsgroup :P) > > > > > -- > PHP Quality Assurance Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-qa-unsubscribe@lists.php.net > For additional commands, e-mail: php-qa-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.qa (#2831) next »