PHP error loading .. new ISP...

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

User avatar
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back

Postby swirlee » Mon Oct 04, 2004 4:23 pm

Looks like an include_path problem. Make sure that DB.php is exactly where PHP is looking for it, or make sure that its location is in the include_path.

User avatar
Posts: 312
Joined: Sat Apr 05, 2003 4:33 am
Location: Mansfield, UK

Postby bezmond » Mon Oct 04, 2004 10:38 pm

check file permissions for reading/executing.


User avatar
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Re: PHP error loading .. new ISP...

Postby WiZARD » Wed Oct 13, 2004 5:04 am

fpc wrote::eek: We are new to PHP. A recent project was uploaded to our ISP, When we attempt to access the project, the following error messages appear.

Warning: main(DB.php): failed to open stream: No such file or directory in /home/nyaa-spo/public_html/onlinereg/includes/ on line 46

Warning: main(): Failed opening 'DB.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/nyaa-spo/public_html/onlinereg/includes/ on line 46

Fatal error: Class dbms: Cannot inherit from undefined class db in /home/nyaa-spo/public_html/onlinereg/includes/ on line 49

Has anyone experienced this before? Can you share the fix with us.. The ISP seems lost with this one.
Help is GREATLY appreciated
thanks in advance

swirlee is right your problem in path to file.
try find this string 46 and see how you include your file maby in code present vars like __FILE__ or $_SERVER['DOCUMENT_ROOT']. In more situations on the ISP used links and hard links to files and folders. try obviously set path to file

Return to “PHP Installation”

Who is online

Users browsing this forum: No registered users and 1 guest