Thread: New PHP/PG functions

New PHP/PG functions

From
Chris Ruprecht
Date:
Hi all,

a lot of functions have been replaced in PHP with different ones, I think this
happened in PHP 4.2.0 (example: pg_exec() is now pg_query() ... strange
move).

Can anybody tell me when the original functions will disappear from PHP all
together and why this change happened? I want to avoid breakage of my
applications, just because somebody starts using a new version of PHP.

In my eyes, this makes no sense. An "insert" in no query, but now I have to
put it into the query function ... hmmmm ... :)

Best regards,
Chris
--
Chris Ruprecht
Network Grunt and bitpusher extraordinaire

Re: New PHP/PG functions

From
Keary Suska
Date:
on 8/27/02 9:32 PM, chris@cdrbill.com purportedly said:

> In my eyes, this makes no sense. An "insert" in no query, but now I have to
> put it into the query function ... hmmmm ... :)

No, this is incorrect. INSERT is a query. DELETE is a query. What you are
saying is tantamount to saying that INSERT and DELETE statements are not
part of the Structured *Query* Language (SQL). According to the SQL
definition every database operation is a query. Hence the new name. In any
case, the names are being changed a consistent and uniform naming convention
for database operation functions. And this is a good thing.

Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"