include_once problem...
| From: | JT Graveaud | Date: | Tue, 20 Mar 2001 07:15:51 +0000 |
| Subject: | include_once problem... | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-6160@lists.php.net to get a copy of this message | ||
Hi,
I'm using PHP4.0.5-dev on Apache/1.3.17 - under Windows-Me,
sorry not on purpose ;( ... ;-)
I have in my script : include_once "my_file.inc";
and later on in the same script I have an other :
include_once "my_file.inc";
unfortunately, I have this error:
Fatal error: Cannot redeclare my_function() in my_file.inc on line xxx
Which means, include_once does not work properly on ...
PHP4.0.5 ? Me ?
anyone already knows this problem ?
on linux, of course it works perfectly ...
Thanks for any advices.
PS: Otherwise, I know I can use the old method to include once,
with a variable, but I'd like to avoid this.