RE: [PHP-GENERAL] Help with global function

From: Date: Fri, 23 Jun 2000 19:36:02 +0000
Subject: RE: [PHP-GENERAL] Help with global function
Groups: php.general 
Request: Send a blank email to php-general+get-2855@lists.php.net to get a copy of this message
Use a require statement. At the top of your file.. <? require("globals.php"); //global functions ?> -----Original Message----- From: Chris [mailto:php_list@ibcnetwork.net] Sent: Friday, June 23, 2000 3:35 PM To: php Subject: [PHP-GENERAL] Help with global function Hi, How do I have a function that can be used by several files? I tried to use an include statment at the top of the file that goes and gets a small file that has the function, but php complains and tells me that funcitons have to be defined as the first thing. Help please, Thanks Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#2855) next »