Home > Archive > PHP Pear > March 2007 > dbase connection on a remote computer in lan
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 |
dbase connection on a remote computer in lan
|
|
| gasdia73 2007-03-30, 4:00 am |
|
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-connect...9.html#a9748926
Sent from the Pear - General mailing list archive at Nabble.com.
| |
| Mark Wiesemann 2007-03-30, 8:00 am |
| 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
|
|
|
|
|