Re: interbase connect

From: Date: Mon, 14 Aug 2000 21:38:27 +0000
Subject: Re: interbase connect
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-11689@lists.php.net to get a copy of this message
On Mon, 14 Aug 2000, phptr@gmx.com.tr wrote: > Hi, > > Warning: InterBase: I/O error for file "song.gdb" Error while trying to open > file The network path was not found. in c:\program files\apache > group\apache\htdocs\sarki\index.php on line 17 > > line 17 is: >$co=ibase_connect($ip,$user,$pass); > > ip,user and pass are defined before as: > $ip='localhost'; > $user='root'; > $pass='gurkan'; Your connection string is wrong. Instead of specifying ip you should specify the path to your database file including the drive letter and the name of the gdb file. because you're using windows, the example uses uses backslashes. e.g. $db='full_path_to_song_gdb\song.gdb'; $user='root'; $pass='gurkan'; $co=ibase_connect($db,$user,$pass); if the db is on a remote machine it is specified as the machine name, column and path to the file on that machine. $db='host_name:full_path_to_song_gdb\song.gdb'; HTH -- Meir Kriheli MKsoft computer systems "There's someone in my head but it's not me" - Pink Floyd

« previous php.general (#11689) next »