473,473 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

php and MS-SQL and PostgreSQL (with Apache)

Hi,
I have an architectural type question that centers around php.
We have a website that people hit that uses php to dynamically
generate
web pages. We use Apache and php (although we don't have php compiled
in with apache). Our Unix like server (FreeBSD) that has php (and
Apache) on it that today communicates with the postgresql database on
another Unix like server (Linux). I configured the php set of
libraries with postgresql support in them.

(Unix server) (Unix server)
[Apache + PHP ] -----> [ postgresql ]
-
-
- (Win 2003)
[ MS SQL 200 ]

We are adding a Windows server into our system that contains MS-SQL
2000 on
it with another database to interact with. My question is to access
both databases from the php server (freebsd), is it only a matter of
compiling php with postgresql and mssql support in it or are there
other things to consider? I know there are different function calls
for each database type and even a PEAR interface that handles
different databases with a common interface. I am just looking at my
configurtion options/possibilities.

Thanks in advance

Mike
Jul 17 '05 #1
3 3301
Hi Mike!

On 11 Nov 2003 11:13:06 -0800, mi*****@hotmail.com (Mike) wrote:
Hi,
I have an architectural type question that centers around php.
We have a website that people hit that uses php to dynamically
generate
web pages. We use Apache and php (although we don't have php compiled
in with apache). Our Unix like server (FreeBSD) that has php (and
Apache) on it that today communicates with the postgresql database on
another Unix like server (Linux). I configured the php set of
libraries with postgresql support in them.

(Unix server) (Unix server)
[Apache + PHP ] -----> [ postgresql ]
-
-
- (Win 2003)
> [ MS SQL 200 ]

We are adding a Windows server into our system that contains MS-SQL
2000 on
it with another database to interact with. My question is to access
both databases from the php server (freebsd), is it only a matter of
compiling php with postgresql and mssql support in it or are there
other things to consider? I know there are different function calls
for each database type and even a PEAR interface that handles
different databases with a common interface. I am just looking at my
configurtion options/possibilities.


I don't think there is much of a problem other than smaller ones with
each of the databases.

I have Informix and MSSQL compiled as extensions here and it works
fine. There is also a patch, which lets you write the microseconds
into SQl server datetimes. I can send it to you on request. I think it
has still not made it into PHP, I don't know why.

Jochen



Thanks in advance

Mike


--
Jochen Daum - CANS Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/
Jul 17 '05 #2
Jochen Daum wrote:
fine. There is also a patch, which lets you write the microseconds
into SQl server datetimes. I can send it to you on request. I think it
has still not made it into PHP, I don't know why.


Hi Jochen, I wouldn't mind this patch. I use Oracle, PostegreSQL, MySQL,
and MS-SQL at work and I wouldn't mind being able to keep everything in
seconds/microseconds.

Thanks!

Jul 17 '05 #3
Doesn't sound like there are too many issues on the face of it. My
advice is to just do it. I still recomend the use of PEAR (or some other
similar abstraction thing for which there are a few). While there will
still be implementation differences, you can still potentially save
yourself lots of work.

I'm not sure what the performance comparrisons are between MSSQL and
PostgreSQL, but I know I prefer working with Postgres -- it's much more
powerful allowing you to choose a range of languages to use for stored
procedures including C and perl. I also prefer sequences to MS's
"identities". If it were up to me, I'd port the MS database to postgres
:) But then you probably have other windows apps talking to it so you can't.

My only real advice is to make sure you've tuned the postgres box, it
makes a BIG difference to performance. I think this is simply a case of
adjusting the buffer size it is allowed to use. By default, it is
usually set too low. It all depends on how much that box can afford to
give it without impacting on it's other processes. Of course then there
are other issues like indexing and so forth.

Jul 17 '05 #4

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

Similar topics

9
by: CY FOK | last post by:
Hi I am planning to open a software company to develop client-server apps and web applications for my client. Now, i am in a difficult situation to determine what is the best platform i should use...
2
by: Durham Writer | last post by:
Hi all, I am trying to learn c++ for the first time, having used 'c' in the past. It was a long time ago and I'm getting back into programming. I was wondering if I could get some help...
5
by: Don Wash | last post by:
Hi All! I do not find any relevant newsgroups to post this question so I just posted to this VB DotNet and General DotNet groups. I'm trying to create a VB.NET application that will scan...
2
by: Maryam | last post by:
Is a split window possible for an MS DOS program and MS Access program?? If so how??? When you run a DOS programn it covers the whole of the PC screen and if you have other applications you...
11
by: WindAndWaves | last post by:
Hi Gurus I have recently discovered references in the VB section of MS Access, however, when choosing references, I noticed that there are more than who knows how many options. How and/or where...
47
by: ship | last post by:
Hi We need some advice: We are thinking of upgrading our Access database from Access 2000 to Access 2004. How stable is MS Office 2003? (particularly Access 2003). We are just a small...
11
DUNXALEARE
by: DUNXALEARE | last post by:
Hello everyone! I have a new assignment. I just dont know how to create a data report using ms excell. I need to search particular group of data/records using Visual basic 6. in MS Access and...
1
by: reliance | last post by:
Using Oracle Migration Workbench, I migrated ms-access 2003 database to oracle 9i. The memo datatype in ms-access mapped to clob datatype in oracle. I have created a system dsn to access oracle...
0
by: VaBa | last post by:
Hi, Need some help.. I have a VBA class module in MS ACCESS. In the same MS ACCESS app, I am calling a .NET DLL (which i have exposed as COM-visible) and passing BYREF an instance of the VBA class...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.