function needed in different source files

From: Date: Sun, 16 Jul 2000 06:57:15 +0000
Subject: function needed in different source files
Groups: php.general 
Request: Send a blank email to php-general+get-6801@lists.php.net to get a copy of this message
Hi php programmers... How can I include a script multiple times ? In c you wold use: #ifndef TEST #define TEST function something() { } #endif I need to use the function something() in different source files. I am using: require ( test.php3 ); But I get the following error: Fatal error: Can't redeclare already declared function in test.php3 on line 6 Is there something you can do about it ?

« previous php.general (#6801) next »