Thread: Wamp + firebird
View Single Post
  #2 (permalink)  
Old 5th July 2009, 13:18
u.masotti u.masotti is offline
D4PHP Guru
 
Join Date: Nov 2007
Posts: 228
u.masotti is on a distinguished road
Default

Hi,
try to answer step by step...

Quote:
Originally Posted by kelinda View Post
Hi have a db named WEB_ORDINI.gdb,
rename database when offline with other more confortable extension. Firebird suggest to have .fdb extension to database file, exp. on windows where .gdb is reserved for system use. Another reason to do so, is that for historical reasons, .gdb is for Interbase database files. Now that projects are definitively forked, it's a good reason to identify which is which.
Quote:
Originally Posted by kelinda View Post
in the hide of DFPHP I set the driver name on borland_ibase
No, select "firebird" in Adodb components (i.e. general Database components) instead and don't use Interbase dedicated component to interface to Firebird. There are some little differences for SELECT spec. in SQL language and PHP software querying for metadata can't create correct queries...
Quote:
Originally Posted by kelinda View Post
and the databasename: WEB_ORDINI.gdb, i put the db,gds32.dll, and all file deployed with wizard procedure, in the folder C:\wamp\www , the WAMPSERVER is goingon good...,
After deplying with wizard, have you checked that there aren't any other gds32.dll hidden somewhere in server's directories? There must be only one, and it must be the Firebird's one version. Check with file properties.
Quote:
Originally Posted by kelinda View Post
version firebird is 1.2...
Uh? Sure? Maybe you mean 2.1...
Quote:
Originally Posted by kelinda View Post
when i run the project in DFPHP the database is connected correctly ...
I'm almost sure: it's another server... don't confuse each other.
Quote:
Originally Posted by kelinda View Post
the problem is that,when i click on link localhost , i can see the first page, but the second one, that call the connection on firebird db, i show this error
below....can i do something?
thanks

Notice: Undefined index: file in C:\wamp\www\vcl\classes.inc.php on line 128

Notice: Undefined index: line in C:\wamp\www\vcl\classes.inc.php on line 128

Notice: Undefined index: file in C:\wamp\www\vcl\classes.inc.php on line 128

Notice: Undefined index: line in C:\wamp\www\vcl\classes.inc.php on line 128

Notice: Undefined index: line in C:\wamp\www\vcl\classes.inc.php on line 129

Notice: Undefined index: file in C:\wamp\www\vcl\classes.inc.php on line 129
As I see you have error level to notice (good to debug).
Obviously, the first thing I'd check is: what happens at line 128 and 129 of classes.inc.php?
Undefined index means (indirectly) that maybe a NULL or void string is replacing a meaningful information among other things.
In my D4PHP version that happens in a the exception management, retrieving information from the stack for trace, so don't care for the moment.
Quote:
Originally Posted by kelinda View Post
Application raised an exception class EDatabaseError with message 'Cannot connect to database server'
Click for detailed informationCallstack #0 File: C:\wamp\www\ufrmLog.php Line: 7
|_Callstack #1 File: C:\wamp\www\uDataMod.php Line: 24
|_Callstack #2 File: C:\wamp\www\vcl\classes.inc.php Line: 1880
.....
Ok. What is line 24 of uDataMod.php?
Try to attach some of your code, so it's possible to identify what happens exactly.
ANother thing: in my version of D4PHP sources line 1880 of classes.inc.php is a comment. Which version of D4PHP are you using now?
__________________
Ciao.
Mimmo.

Last edited by u.masotti; 5th July 2009 at 13:24. Reason: Version of D4PHP
Reply With Quote
Sponsored Links