PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Well, after examining the DB.php file I found out that you can set a debug variable when you connect that spits out errors, and now I am finally receiving some errors:
Warning: require_once(DB/common.php) [function.require-once]: failed to open stream: No such file or directory in /home/coolmail/public_html/includes/system/PEAR/DB/mysql.php on line 30
Fatal error: require_once() [function.require]: Failed opening required 'DB/common.php' (include_path='.:/usr/local/php5-fcgi/lib/php') in /home/coolmail/public_html/includes/system/PEAR/DB/mysql.php on line 30
The only problem is that common.php does exist in /home/coolmail/public_html/includes/system/PEAR/DB. The only thing I can think of is that it's trying to include DB/common.php rather than the full path I just specificed above. Is there a way to make it use the full path without editing the file directly?
Is there another way to do that? As I said before, PEAR is not locally on the system it's apart of my framework located in /home/coolmail/public_html/includes/system/PEAR. Changing the include path might mess somethings up.
Yea, I just defined a variable named PEAR_PATH and edited mysql.php to include that path when including other files. Shouldn't hurt too much, only one line, and it works both on my computer and my system.