When using PHP3 to connect a web page to a PostgreSQL
database, even the most basic PHP commands fail.
Here is an example:
This is the line in my HTML code that according to PHP's
documentation, should have no problems:
$conn = pg_connect("","","","","icwf");
However, when I try to load the page with this code in it,
I get this error message:
Fatal error: Call to unsupported or undefined function
pg_connect() in /home/httpd/html/icwf/roster.php3 on line 10
pg_connect is a BASIC PHP command! I should not have to
define it, because PHP should already parse and handle it.
If the mod_php3 was not compiled to enable access to
PostgreSQL from a web page, then it should be as quickly as
possible. This eliminates the ability to do online
shopping, or any other application for which web pages and
databases must connect.
php3 does not have postgresql support compiled in.
> If the mod_php3 was not compiled to enable access to
> PostgreSQL from a web page, then it should be as quickly as
I agree 110%.
This may not be really a bug of the package, but, IMHO, may very well
be seen as a bug of the distro... that is, since you package Apache
and mod_php3 as well as PostgreSQL as standard components of the
distro, anyone (at least, I) would expect to be able to use php3 to
access local PostgreSQL databases from the WWW.
I was just wondering about this problem, when I read this entry in
bugzilla! Hope you'll consider to change this for the next release.
Tnx & Regards,