Вы находитесь на странице: 1из 3

Lorenzo Alberton (http://www.alberton.

info/)

HowTo: Install Firebird/Interbase with PHP on Windows. A step-by-step tutorial.


(http://www.alberton.info/firebird_php_windows.html)
PHP, PEAR, Database, Firebird SQL, Windows

30 March 2006 15:12 8 comments

This simple tutorial assumes you already have a working PHP installation. There's plenty of guides on how to set up PHP, here I'm only showing
how to make it interact with Firebird.

(http://pear.php.net/)

(http://www.php.net/)

(http://www.firebirdsql.org/)

Requirements
PHP (http://www.php.net/)
Firebird SQL (http://www.firebirdsql.org/)

Install Firebird SQL


Download the zip archive: Firebird SQL 2.0.0 (http://prdownloads.sourceforge.net/firebird/Firebird-2.0.0.12748-0_win32.zip)
Extract the archive to C:\firebird (for instance)
Open a command prompt window (START, Run, "cmd")
Run these commands, one by one:
C:\firebird\bin\instreg i
C:\firebird\bin\instsvc i -s -a
C:\firebird\bin\instsvc start

Configure PHP
Copy C:\firebird\bin\fbclient.dll to your C:\windows\system32 directory and rename the file to
gds32.dll
Copy php_interbase.dll from your php\ext directory to the C:\windows\system32 directory.
Copy libeay32.dll and ssleay32.dll from your php directory to the C:\windows\system32 directory.
Edit your php.ini, un-comment the line
extension=php_interbase.dll
(you have to remove the semicolon from that line).
Restart your webserver (Apache).

Install some Firebird SQL Tools


You can manage your databases with some tools:
EMS SQL Manager for InterBase/Firebird (http://www.sqlmanager.net/en/products/ibfb/manager/download) : the free version is more than
enough for a start.
FlameRobin (http://www.flamerobin.org/) : another GUI tool, open source.
ibWebAdmin (http://www.ibwebadmin.net/) : web frontend for the Firebird and InterBase database servers, written in PHP.
NB: the default admin username:password pair for Firebird is SYSDBA:masterkey.
(http://twitter.com/lorenzoalberton) Follow Lorenzo

on Twitter (http://twitter.com/lorenzoalberton)

Related articles
PHP PDO_Firebird status (php_pdo_firebird_status.html)
Firebird 2 cheat sheet (firebird_cheat_sheet.html)

Database System
Business intelligence experts sharing their secrets
with you. Go!
www.AllAnalytics.com

NuoDB - NewSQL Leader


Elastic SQL database for the cloud Download the
Beta today
www.nuodb.com

Classic Trans Ams


Vintage Pontiac Trans Am for Sale View our
online showroom now!
www.rkmotorscharlotte.com

8 responses to "HowTo: Install Firebird/Interbase with PHP on Windows. A step-by-step tutorial."


moncler jackets, 02 November 2010 07:55
* web frontend for the Firebird and InterBase database servers, written in PHP.
NB: the default admin username:password pair for Firebird is SYSDBA:masterkey.
Denis, 28 December 2010 09:32
Thank you! Your article helped me to quickly set up php and firebird
Par mums, 03 January 2011 20:08
Thanks, it was helpful!
wordpress premium themes, 15 May 2011 16:09
Your article helped me to quickly set up php and firebird
reisen malta, 24 May 2011 23:58
Nice this helped me with my Windows System
Patty, 31 May 2011 10:15
Thanks a LOT............................
obeng, 16 August 2011 18:07
Thanks,
Muhammad Nadat, 05 September 2011 12:08
im trying to create a php application to connect to interbase but im using a 64bit system, iv followed your tutorial but i still cant get it to work i get
the following error Fatal error: Call to undefined function ibase_connect() in C:\\xampp\\htdocs\\phase\\includes\\config.php on line 11 another
thing is where do i get the php_interbase.dll because i cant find it in my php/ext folder !!

Leave a reply
Name (required)
Homepage
Email address (required)
(it will NOT be published)

(required)
No HTML tags. All comments need to be approved before they appear on the site - this is not to weed out critical comments, but just spam.
2 + 3 = (required)
Please solve this simple operation.
Submit comment

Back to the articles archive (http://www.alberton.info/articles)


2009-2010 Lorenzo Alberton (http://www.alberton.info/about) Home (http://www.alberton.info/) Articles (http://www.alberton.info/articles)
Projects (http://www.alberton.info/projects) Portfolio (http://www.alberton.info/portfolio) Talks (http://www.alberton.info/talks) Donate

(http://www.alberton.info/donate)

Вам также может понравиться