dbase connection on a remote computer in lan
| From: | gasdia73 | Date: | Fri, 30 Mar 2007 08:05:19 +0000 |
| Subject: | dbase connection on a remote computer in lan | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-26951@lists.php.net to get a copy of this message | ||
hi everybody,
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");
?>
the result is : Cannot connect: DB Error: connect failed
if i copy the dbf file in my local system and substitute the $dsn with :
$dsn = "dbase:///C:/DB/call_report.DBF";
it connects.
Any idea on how to set proper permission on the remote machine in order to
succesfully connect ?
thanx in advance
--
View this message in context: http://www.nabble.com/dbase-connection-on-a-remote-computer-in-lan-tf3490839.html#a9748926
Sent from the Pear - General mailing list archive at Nabble.com.