Multiple pages including one Class...
| From: | Roy Nasser | Date: | Mon, 27 Nov 2000 22:58:26 +0000 |
| Subject: | Multiple pages including one Class... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-27479@lists.php.net to get a copy of this message | ||
Hi Everyone,
I am having a problem building a very complex site with many includes and
classes...
I am running into problems because Some pages try to include a file, and
define a class which has already been defined...
Is there a SURE way to make this type of error not happen?
I have tried doing $incMyFile = 1 and then an IF when i go Include, but it
is no use... One time or another, inside some function or another it ends up
crashing... I also tried with DEFINE(), but sometime it ends up crashing...
Would there be any use in making PHP more forgiving in this type of case
(Like if you set something on the included file, then classes can be
re-defined, and functions overried others?)
Roy Nasser
CTO
Vem Cá Servicos de Internet S/C Ltda.
Av. Paulista 2421 14* Andar
São Paulo SP Brasil
55 11 3347 3456 / 9953 8853 - cel
www.jarbas.com.br
roy@vem.ca