Jump to content

PHP5 and Postgres.... not working at all. PLZ HELP!


jlr2k8

Recommended Posts

Previously, I had my server set up with PHP 4.4.4 and PostgreSQL 8.1, and I had no problems at all. I got a new server today, and I installed the latest PostgreSQL (8.2) and PHP 5.2.1. For some reason though, I keep getting errors... like PHP doesn't recognize the Postgres database.

 

I get errors like these:

 

Warning: odbc_connect() [function.odbc-connect]: SQL error: [Microsoft][ODBC Driver Manager] The server appears to be not available., SQL state 08S01 in SQLConnect in D:\...index.php on line 32

 

Warning: odbc_exec(): supplied argument is not a valid ODBC-Link resource in D:\...index.php on line 23

 

Warning: odbc_fetch_row(): supplied argument is not a valid ODBC result resource in D:\...index.php on line 24

Gotcha. I thought you were referring to the ini file. Maybe I don't know what compiling is. All I usually do is download the Windows ZIP file, and extract it to c:\php, then edit the php.ini file.

 

Do you mean compile from source?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.