Name: Anonymous 2008-07-02 20:14
Here's my problem: My program is not including the file as I'd like it to. I have three files, test.php, main.php and config.php.
I required config.php in main.php and required main.php in test.php so I can test to see if logging in works for my system. It however does not see the constants I defined in config.php and says
>Warning: mysqli::mysqli() [function.mysqli-mysqli]: (HY000/2005): Unknown MySQL server host 'DBHOST' (11001) in [filename] on line 15
I defined DBHOST as localhost in config.php but it doesn't see it. However it sees it when I run main.php alone. Can anyone help me?
I required config.php in main.php and required main.php in test.php so I can test to see if logging in works for my system. It however does not see the constants I defined in config.php and says
>Warning: mysqli::mysqli() [function.mysqli-mysqli]: (HY000/2005): Unknown MySQL server host 'DBHOST' (11001) in [filename] on line 15
I defined DBHOST as localhost in config.php but it doesn't see it. However it sees it when I run main.php alone. Can anyone help me?