Re: dbase connection on a remote computer in lan
| From: | Mark Wiesemann | Date: | Fri, 30 Mar 2007 11:18:48 +0000 |
| Subject: | Re: dbase connection on a remote computer in lan | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26957@lists.php.net to get a copy of this message | ||
gasdia73 wrote:
> i don't think i mispelled any slashes, cause simply turning X into C on my
> local file works..
>
> i also tried :
>
> $db_file = "///X:/DB/call_report.DBF";
> $id = dbase_open ($db_file, 0) // open in read mode
> or die ("Could not open dbf file $db_file.");
>
> but it says :
>
> Could not open dbf file ///W:/call_report.DBF.
What? W: or X:? As this does not seem to be an issue with PEAR::DB, the
guys on the PHP mailing lists might be more helpful on this problem.
I still don't see the need for the slashes. I have an old dbase based
script on my Windows system, that works with 'C:/data/foo/bar.dbf' (just
an example) without problems.
Please remember that the DSN string already requires two slashes after
"dbase:", just like you would do it with "mysql://user:pass...".
Regards,
Mark
--
http://www.markwiesemann.eu