For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > November 2006 > bum include_path









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author bum include_path
brian

2006-11-13, 3:58 am

I've just re-compiled 5.14 (to get mbstring support) and now my include
path seems borked.

phpinfo() shows:

include_path .:/usr/local/php/lib/php

# ls -l /usr/local/php/lib/php
total 420
drwxr-xr-x 2 root root 4096 Aug 14 13:18 Archive
drwxr-xr-x 2 root root 4096 Nov 13 00:14 build
drwxr-xr-x 4 root root 4096 Aug 14 13:42 Cache
-rw-r--r-- 1 root root 10926 Aug 14 13:42 Cache.php
drwxr-xr-x 2 root root 4096 Aug 14 13:18 Console
drwxr-xr-x 7 root root 4096 Aug 14 13:42 data
drwxr-xr-x 2 root root 4096 Aug 14 13:42 DB
-rw-r--r-- 1 root root 38937 Aug 14 13:42 DB.php
drwxr-xr-x 17 root root 4096 Oct 4 14:15 doc
drwxr-xr-x 3 root root 4096 Nov 12 23:44 extensions
drwxr-xr-x 3 root root 4096 Aug 14 13:42 HTTP
etc. etc.

Script error:
Warning: require_once(MDB2.php) [function.require-once]: failed to open
stream: No such file or directory in
/var/www/vhosts/elan/htdocs/includes/db/get_mdb2.php on line 9

Fatal error: require_once() [function.require]: Failed opening required
'MDB2.php' (include_path='.:/usr/local/php/lib/php') in
/var/www/vhosts/elan/htdocs/includes/db/get_mdb2.php on line 9


MDB2 is among the etc. above. Any other page which requires any other
PEAR package fails in the same way.

I'm almost certain this has happened to me once before but i can't think
of what the problewm is here. Any ideas?

brian
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com