ini_set('include_path', 'J:/Program Files/php/pear/'); require_once 'PEAR.php'; require_once 'DB.php';
ini_set(); should be the 'root' where all included files will be found. On Windows you use / for paths.... or sometimes \\ (escaping a \). Anyway, the above method works on my machine. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 "Gary" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > I am working at home today and have to use windows. I am trying to use > PEAR and keep getting an undefined class name for > $db = DB::connect("mysql://$user:$pass@$host/$dname"); > my include for PEAR > ini_set('include_path', 'J:\Program Files\php\pear\DB.php'); > > where did I screw up. > > TIA > Gary > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php