Re: One last kick at the cat

From: Date: Sun, 28 Oct 2001 22:43:16 +0000
Subject: Re: One last kick at the cat
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-72652@lists.php.net to get a copy of this message
Henrik Hudson wrote: > Inside your function define: > > global $server; > global $pass; > global $user; > etc.... > > It is using variables insides it's own scope and unless you have use > GLOBAL_VARIABLES defined in your php.config file, it won't go outside of it's > scope to look for values, hence they are getting asigned NULL and you can't > connect to a NULL DB :) Looking at the content of this post and my post above this one, it seems like it is global day/night again <g> -- Imar de Vries - I.O.deVries@students.let.uu.nl - ICQ 6972439

« previous php.general (#72652) next »