Re: [PHP] Can't redeclare already declared function

2001-04-12 Thread Christian Reiniger
On Wednesday 11 April 2001 17:50, you wrote: > Thanks to all who suggested using include_once. Maybe it is just me > (long FORTRAN background), but the very idea of include_once makes me > nervous, and I don't use it. It violates my sense of acceptable design. > I would rather design my code such

RE: [PHP] Can't redeclare already declared function

2001-04-11 Thread Johnson, Kirk
YMMV. The Old Fogey, Kirk > -Original Message- > From: Jeffrey Paul [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 11, 2001 9:22 AM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] Can't redeclare already declared function > > > > > better y

RE: [PHP] Can't redeclare already declared function

2001-04-11 Thread Jeffrey Paul
better yet, try include_once() instead of all instances of include(). It will only include a file once, rather than every time you call include() on that path. Nifty feature. -j At 11:17 AM 4/11/2001, Johnson, Kirk wrote: >The function in question is defined in an included file, right? Thi

RE: [PHP] Can't redeclare already declared function

2001-04-11 Thread Altunergil, Oktay
If you're using php4 you can say include_once("include_file_name.php"); (there's also require_once() ) oktay -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 11, 2001 11:18 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Can

RE: [PHP] Can't redeclare already declared function

2001-04-11 Thread Johnson, Kirk
The function in question is defined in an included file, right? This function definition file is most likely being included twice. The best bet is that it is being included from another included file (at least, that's how I usually manage to produce this error :) ). Check all your included files f