I have a homebrew CMS I'm working on, I've got it functioning fine on my local server(Apache on OS X), but it doesn't work on 000.
I couldn't find a quick fix, so I decided to create a minimal test case to see if I still got the error on db.php. I did. Here is the test case. The 'echo "Hello World!"' is to verify that this test script is in fact executing.
PHP Code:
<?php
echo "Hello World!";
require_once('db.php'); ?>
This file is set to permissions 755.
Here is what it gives back to me when I load that page:
Code:
Hello World!
PHP Error Message
Warning: require_once(db.php) [function.require-once]: failed to open stream: No such file or directory in /home/a2834921/public_html/test.php on line 3
Free Web Hosting
PHP Error Message
Fatal error: require_once() [function.require]: Failed opening required 'db.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a2834921/public_html/test.php on line 3
Same errors as I got on my actual code, so it appears that I nailed the simplified test case.
db.php is the PEAR DB module for PHP, which I use to access MySQL. Is there something special about using this module here? Or is an entirely different module in use? If so, could someone kindly direct me to a howto on that module so I can change my database access code? I've tried a forum search, but I could only find a few references on specific issues, not a ground up tutorial which I'd need. RTFM is a fine answer, I just need a little help finding the FM I think.