473,406 Members | 2,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

PHP with sybase or postgresql


I was wondering how to connect to postgresql and sybase databases.

I'm assuming that I need to recompile php with the flags for both

Do I also need to install sybase and postgresql themselves first?
I know that mysql support is built in, at least into php 4.

could anyone point me to a good source of info on this

Thanks
Jul 17 '05 #1
3 2127
Ilya Knizhnik schrieb:
I was wondering how to connect to postgresql and sybase databases.

I'm assuming that I need to recompile php with the flags for both

Do I also need to install sybase and postgresql themselves first?
I know that mysql support is built in, at least into php 4.

could anyone point me to a good source of info on this


The official documentation at http://www.php.net/manual/en/ref.pgsql.php
and http://www.php.net/manual/en/ref.sybase.php should explain
everything you need.

Regards,
Matthias
Jul 17 '05 #2
ljb
il***@red.seas.upenn.edu wrote:

I was wondering how to connect to postgresql and sybase databases.

I'm assuming that I need to recompile php with the flags for both

Do I also need to install sybase and postgresql themselves first?
I know that mysql support is built in, at least into php 4.

could anyone point me to a good source of info on this


For PostgreSQL, you need the pgsql extension included in PHP plus the
PostgreSQL client library libpq, the source of which is included in the
PostgreSQL distribution.

For Sybase, you have a few options, none as easy as PostgreSQL. The one I
use is FreeTDS, which provides the low-level library, along with the PHP
sybase_ct extension which is included in PHP. Others have used ODBC or some
Sybase-provided client libraries instead.
Jul 17 '05 #3
Ilya Knizhnik wrote:

I was wondering how to connect to postgresql and sybase databases.

I'm assuming that I need to recompile php with the flags for both

Do I also need to install sybase and postgresql themselves first?
I know that mysql support is built in, at least into php 4.

could anyone point me to a good source of info on this

Thanks


You might consider using a wrapper or abstraction layer to give you some
flexibility. I've had great success with ADODB
http://adodb.sourceforge.net/

Al

Adams-Blake Company, Inc.
***
JAYA123 - the web-based total-office system for the
small biz. Order entry, billing, bookkeeping, etc. for $14.95
a month. See :http://www.jaya123.com
***
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Josh Close | last post by:
I'm getting these errors almost every time I use sybase. I'm using it with mssql. I build it like so: python setup.py build_ext -D WANT_THREADS -D HAVE_FREETDS -U WANT_BULKCOPY python setup.py...
18
by: David Rysdam | last post by:
What module is most recommended for accessing Sybase from Python? This one: http://www.object-craft.com.au/projects/sybase/sybase/ ? Also, is there any module that provides a generic DB API and...
0
by: Dave Cole | last post by:
WHAT IS IT: The Sybase module provides a Python interface to the Sybase relational database system. It supports all of the Python Database API, version 2.0 with extensions. NOTES: This...
2
by: eight02645999 | last post by:
hi i am writing a CGI to process some database transactions using the Sybase module. so in my CGI script, i have: .... import Sybase import cgitb; cgitb.enable(display=1 ,...
1
by: db2sysc | last post by:
All, We have listed out the INBUILT Function differences between Sybase and DB2. Kindly provide your feedback or corrections and for CHANGES - DO WE NEED TO CODE our own UDFs?
0
by: Jean-Christian Imbeault | last post by:
Does anyone know of any recent comparisons of postgres vs, Sybase ASE 12.5? I've looked around but can't find anything useful. Thanks, -- Jean-Christian Imbeault
3
by: Alex Murphy | last post by:
As title, Thanks
0
by: =?ISO-8859-1?Q?S=E9bastien_Sabl=E9?= | last post by:
WHAT IS IT: The Sybase module provides a Python interface to the Sybase relational database system. It supports all of the Python Database API, version 2.0 with extensions. The module is...
0
by: =?ISO-8859-1?Q?S=E9bastien_Sabl=E9?= | last post by:
WHAT IS IT: The Sybase module provides a Python interface to the Sybase relational database system. It supports all of the Python Database API, version 2.0 with extensions. The module is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.