Forum Moderators: coopster
table forum.log doesn`t exist blah blah
For this example the table forum is used in one database and the table log in another.
I get around this problem by juggling the include files around and this works fine.
Just out of curiosity, I was wondering if there was something that you can write in your PHP code that prevents this conflict happening? Or is it a common thing when using different database include files?
Thank you.
/
¦-cgi-bin
¦-files
¦-includes1 <------browsers can't get here
---first.inc
---second.inc
¦-includes2 <------browsers can't get here
---first.inc
---second.inc
¦-logs
¦-www <-----------public area
---about.htm
---contact.htm
---index.php
// Works as of PHP 4.3.0
set_include_path [php.net](get_include_path [php.net]() . '.: [php.net]'
. $_SERVER['DOCUMENT_ROOT'] . '/../includes1/');
#
# ...OR...
#
// Works in all PHP versions
ini_set [php.net]('include_path', ini_get [php.net]('include_path') . '.: [php.net]'
. $_SERVER['DOCUMENT_ROOT'] . '/../includes1/');