(include_path='.:/usr/lib/php:/usr/local/lib/php')


sunucuda safe mod off , open basedir = no value


ini_set('include_path', '~/pear/lib'.PATH_SEPARATOR.ini_get('include_path'));
set_include_path('/usr/local/lib/php/');
require_once('DB.php');


PATH_SEPARATOR => linux için ":" windows için ;
sabit değilse direk yazarsın

kolay gelsin.

hata verirse yaz bakarım.