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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



on 12/2/07 2:22 AM, wmac at sarmadys@xxxxxxxxx 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


I had the same problem last week.

Turned out there was another 'config.php' in the include_path (in my case
the pear folder).

Can you rename the config.php file and things work?

If so, then look in your include_path and see if there is a config.php file
there as well.


-- 
Mike B^)>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux