Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#5834 - php 5.2 fatal error pg_connect ...
|
DetailsI am getting this error when I try to connect to my database Fatal error: Call to undefined function pg_connect()...
The same piece of codes have worked without any changes to previous versions of php. A quick google search has reveiled that is most likely that php was not correctly build with PostgreSQL. I may be wrong though this is my code to connect. <?php // Database host $db_host = "localhost"; // Database user $db_user = "username"; // Database password $db_pswd ="password"; // Database name $db_name = "mydbname"; // Connect to the database $pg = pg_connect("host=$db_host user=$db_user password=$db_pswd dbname=$db_name") or die ("Can't connect to database"); ?> |
This task depends upon
Thanks
instead of /usr/lib/php/extensions/no-debug-non-zts-20060613"
The same problem caused my apache server to stop working a quick "diff /etc/php.ini /etc/php.ini.pacnew" showed the problem.
My bad my own mistake.