Re: undefined functions question

From: Date: Fri, 16 Feb 2001 20:42:39 +0000
Subject: Re: undefined functions question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-40219@lists.php.net to get a copy of this message
Try include_once() for your includes instead of simply include(). --toby Matt Williams wrote: > > > > > This has been an ongoing problem, when I include a file which contains a > > call to a function I get undefined function errors but when I try > > to include > > the file containing the function I get cannot redeclare function error > > messages, I can't win how do I make sure my functions are available to any > > script whether included or whatever. > > > is the function declared before file is included? > I'm not sure but this may cause a problem. > > As for getting the redeclare error, are you sure the function is not > declared in the page or any other file that is included. > > Sorry if this seems a little obvious.. > > Regards > > M@ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#40219) next »