Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 11th, 2004, 08:26 PM
jim_racster jim_racster is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 1 jim_racster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Can't find localhost

Newbie question

I have Firebird 1.5 installed on w2k and I can connect to it with isql, IBOconsole, and in Excel via a DNLess connection in VBA-ADO, but when I try to connect in PHP 5 I get a cannot find localhost error.

connect localhost:c:\data\popeyes.fdb USER SYSDBA PASSWORD masterkey;

I tried using IP, leaving localhost off ( that yields cann't open database), ADOdb to no avail. Connection to mySQL and sqlLite works fine.

What am I doing wrong?

TIA, jim_racster

Reply With Quote
  #2  
Old January 27th, 2005, 07:27 AM
Skalik Skalik is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: Czech Republic
Posts: 4 Skalik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 m 16 sec
Reputation Power: 0
Quote:
Originally Posted by jim_racster
Newbie question

I have Firebird 1.5 installed on w2k and I can connect to it with isql, IBOconsole, and in Excel via a DNLess connection in VBA-ADO, but when I try to connect in PHP 5 I get a cannot find localhost error.

connect localhost:c:\data\popeyes.fdb USER SYSDBA PASSWORD masterkey;

I tried using IP, leaving localhost off ( that yields cann't open database), ADOdb to no avail. Connection to mySQL and sqlLite works fine.

What am I doing wrong?

TIA, jim_racster


example:

$db = ibase_connect('127.0.0.1:\\IB_DATA_ENV\\xx.gdb', "username", "password", "codePage");

!!!! \\ is important !!!!!

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Can't find localhost


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT