Re: include "config.php" does not work anymore after PHP 5.2

From: Date: Sun, 02 Dec 2007 08:33:48 +0000
Subject: Re: include "config.php" does not work anymore after PHP 5.2
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-265373@lists.php.net to get a copy of this message
Okay... show us config.php. On Dec 1, 2007 11:22 PM, wmac <sarmadys@gmail.com> wrote: > > Hello, > > I have been working with PHP 5.0 and my "register_globals" has always been > Off since PHP 4.1 > > Today I upgraded to PHP 5.2 and now neither of my include "config.php" work. > > Neither of the variables defined in include files are even included. Anyone > knows what has been changed and what can I do? > > This is what I normally use > > PHP Code: > > include("config.php"); > > mysql_connect($host,$user,$password); > @mysql_select_db("$db") or die("Unable to open database"); > > I echoed those connection variables and all are empty. > > Thank you, > Mac > -- > View this message in context: > http://www.nabble.com/include-%22config.php%22-does-not-work-anymore-after-PHP-5.2-tf4930800.html#a14113233 > Sent from the PHP - General mailing list archive at Nabble.com. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- -Casey

« previous php.general (#265373) next »