()
- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: Beauford.2002 [EMAIL PROTECTED]
Cc: PHP General [EMAIL PROTECTED]
Sent: Sunday, December 22, 2002 11:16 PM
Subject: Re: [PHP] Undefined Functions
An undefined function error has nothing to do with where you are calling
the function
Lerdorf [EMAIL PROTECTED]
To: Beauford.2002 [EMAIL PROTECTED]
Cc: PHP General [EMAIL PROTECTED]
Sent: Sunday, December 22, 2002 11:16 PM
Subject: Re: [PHP] Undefined Functions
An undefined function error has nothing to do with where you are calling
the function from. It has to do with whether
[EMAIL PROTECTED]
Sent: Monday, December 23, 2002 11:14 AM
Subject: Re: [PHP] Undefined Functions
Like I said, where you define your function is important, not where you
call it. If you are defining and calling it all in the same place, then
yes, obviously it makes a difference.
-Rasmus
On Monday 23 December 2002 11:11 am, Beauford.2002 wrote:
Then based on the one below that doesn't work, what is the problem with it?
your example wasn't runnable (since parts of it were is the
attached a fair example of what you're trying to do? i don't
have any problem with it. it works as
PROTECTED]
To: Beauford.2002 [EMAIL PROTECTED]
Cc: PHP General [EMAIL PROTECTED]
Sent: Monday, December 23, 2002 11:14 AM
Subject: Re: [PHP] Undefined Functions
Like I said, where you define your function is important, not where you
call it. If you are defining and calling it all in the same
could elaborate on this it would
be appreciated.
Beauford
- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: Beauford.2002 [EMAIL PROTECTED]
Cc: PHP General [EMAIL PROTECTED]
Sent: Monday, December 23, 2002 11:14 AM
Subject: Re: [PHP] Undefined Functions
Like I said
Subject: Re: [PHP] Undefined Functions
Like I said, where you define your function is important, not where
you
call it. If you are defining and calling it all in the same place,
then
yes, obviously it makes a difference.
-Rasmus
On Mon, 23 Dec 2002, Beauford.2002 wrote
Hi,
I previously asked a question about getting undefined function errors in my
script and someone mentioned that it may be that I am calling it from within
an if or else statement. This turned out to be the case. Now the question -
is there a way around this? What I need to do resolves around
An undefined function error has nothing to do with where you are calling
the function from. It has to do with whether or not you have defined the
function you are calling.
-Rasmus
On Sun, 22 Dec 2002, Beauford.2002 wrote:
Hi,
I previously asked a question about getting undefined function
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
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
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
12 matches
Mail list logo