note 2462 deleted from function.include by philip

From: Date: Fri, 02 Nov 2001 06:47:13 +0000
Subject: note 2462 deleted from function.include by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-20269@lists.php.net to get a copy of this message
I ran across multiple inclusion problems with a recent project.. I had one file global.php3 that was included in several places so I added a $GLOBALINCLUDED variable in the file and anywhere I included the global file i did this:<br> <PRE>if(!isset($GLOBALINCLUDED) { include "global.php3"; } [edit note: consider include_once() ... -Philip]

« previous php.notes (#20269) next »