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

Link to comment
Share on other sites

Thx for the fast reply. Hmm, I'm not very familiar with DB connections I guess.

 

PHP 5.1.2 w/ PostgreSQL

Win2k Adv Server (IIS 5.0)

 

Yeah I compiled PHP myself, since the installer always fails.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.