Re: dbase connection on a remote computer in lan

From: Date: Fri, 30 Mar 2007 08:49:39 +0000
Subject: Re: dbase connection on a remote computer in lan
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26952@lists.php.net to get a copy of this message
gasdia73 wrote: > i want to connect to a dbf file in a remote computer in lan where i have a > sharing connection mapped into X: (with read only permissions); im using > pear, apache , php5 windows > im experiencing problems with the following code: > > <?php > // connessione al db > require_once "DB.php"; > printf("prova connessione dbf:<br>"); > > $dsn = "dbase:///X:/DB/call_report.DBF"; > $conn =& DB::connect ($dsn); > if (DB::isError ($conn)) > die ("Cannot connect: " . $conn->getMessage () . "\n"); Using die("Cannot connect: " . $conn->getMessage() . ', ' . $conn->getUserInfo() . "\n"); will give you some more information about the problem. Regards, Mark -- http://www.markwiesemann.eu

« previous php.pear.general (#26952) next »