Re: include file

From: Date: Mon, 26 Feb 2001 03:12:23 +0000
Subject: Re: include file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-41637@lists.php.net to get a copy of this message
On Mon, 26 Feb 2001 13:29, JW wrote: > I have created a config.php3 to store the connection of the database > and some constant variable. Then, I created the other file > functions.php3 and inculde config.php3 into this file for > function.phps3 should use some variables inside the file config.php3. > However, I don't know why all the variable cannot display in the > function.php3. > > would anyone please to tell me what is the reason and how I can solve > it? You may need to declare the variables global within the function, or pass them as arguments to the function. -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#41637) next »