pg_query_params version?

pg_query_params version?

am 03.08.2009 21:50:03 von Carol Walter

Which version of PHP does pg_query_params need? I wrote a PHP
iprogram using PHP 5. My client has PHP 4 something. I got an error
on the first line that contains a pg_query_params function. Is the
problem likely to be the difference in the versions or should I look
elsewhere?

The error is...

Fatal error: Call to undefined function: pg_query_params() in /
projects/ivl/www/ssl/admin/index.php on line 220

Carol


--
Sent via pgsql-php mailing list (pgsql-php@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php

Re: pg_query_params version?

am 03.08.2009 21:52:31 von Bill Moran

In response to Carol Walter :

> Which version of PHP does pg_query_params need? I wrote a PHP
> iprogram using PHP 5. My client has PHP 4 something. I got an error
> on the first line that contains a pg_query_params function. Is the
> problem likely to be the difference in the versions or should I look
> elsewhere?
>
> The error is...
>
> Fatal error: Call to undefined function: pg_query_params() in /
> projects/ivl/www/ssl/admin/index.php on line 220

You already know the problem. The PHP docs:
http://us2.php.net/manual/en/function.pg-query-params.php
claim:
(PHP 5 >= 5.1.0)

Thus that function is only in version 5.1.0 and newer.

--
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/

--
Sent via pgsql-php mailing list (pgsql-php@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php

Re: pg_query_params version?

am 03.08.2009 21:53:37 von Rod

On 03/08/2009 20:50, Carol Walter wrote:
> Which version of PHP does pg_query_params need? I wrote a PHP iprogram
> using PHP 5. My client has PHP 4 something. I got an error on the
> first line that contains a pg_query_params function. Is the problem
> likely to be the difference in the versions or should I look elsewhere?
>
> The error is...
>
> Fatal error: Call to undefined function: pg_query_params() in
> /projects/ivl/www/ssl/admin/index.php on line 220

Dunno for sure - I've never used PHP 4 - but it certainly looks as if
the problem is the older version of PHP.

You should encourage your client to use a newer version of PHP if at all
possible - PHP 4 is not supported any more.

Ray.

------------------------------------------------------------ ------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------ ------

--
Sent via pgsql-php mailing list (pgsql-php@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php

Re: pg_query_params version?

am 03.08.2009 22:11:07 von Carol Walter

Of course, I suspected that this was the problem, however, I can't
change the client's PHP version, so before I made major modifications
to my program, I wanted to make sure this was the problem. In my 25
year career in IT, I have occasionally run across an error message
that didn't mean what it said. =)

Carol

On Aug 3, 2009, at 3:52 PM, Bill Moran wrote:

> In response to Carol Walter :
>
>> Which version of PHP does pg_query_params need? I wrote a PHP
>> iprogram using PHP 5. My client has PHP 4 something. I got an error
>> on the first line that contains a pg_query_params function. Is the
>> problem likely to be the difference in the versions or should I look
>> elsewhere?
>>
>> The error is...
>>
>> Fatal error: Call to undefined function: pg_query_params() in /
>> projects/ivl/www/ssl/admin/index.php on line 220
>
> You already know the problem. The PHP docs:
> http://us2.php.net/manual/en/function.pg-query-params.php
> claim:
> (PHP 5 >= 5.1.0)
>
> Thus that function is only in version 5.1.0 and newer.
>
> --
> Bill Moran
> http://www.potentialtech.com
> http://people.collaborativefusion.com/~wmoran/


--
Sent via pgsql-php mailing list (pgsql-php@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php