Re: dbase connection on a remote computer in lan

From: Date: Fri, 30 Mar 2007 10:17:11 +0000
Subject: Re: dbase connection on a remote computer in lan
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26956@lists.php.net to get a copy of this message
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. help! Mark Wiesemann-4 wrote: > > gasdia73 wrote: >> thank you, the added debug string now says : >> >> Cannot connect: DB Error: connect failed, [nativecode=the dbase file does >> not exist and it could not be created because the "fields" element of the >> DSN is not properly set] ** dbase:///X:/DB/call_report.DBF > > This message is returned on the following two cases: > - if (!file_exists($dsn['database'])) { > - if (empty($dsn['fields']) || !is_array($dsn['fields'])) { > > It looks like PHP can't find the file with this X:/... notation. (Isn't > there also one slash to much after "dbase:"? Maybe just this typo is the > reason?) > > Regards, > Mark > > -- > http://www.markwiesemann.eu > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- View this message in context: http://www.nabble.com/dbase-connection-on-a-remote-computer-in-lan-tf3490839.html#a9750527 Sent from the Pear - General mailing list archive at Nabble.com.

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