[Centos] Problem with conection to postgresql from php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Cristofer N. Reyes A. wrote:

>Hi anyone!
>  
>
Actually, I don't think this is that complicated, though  nice thought 
Mike (could be!).

This is out of one of my test files for new server installs for eZ 
Publish... maybe it'll help you?  If you didn't check, it's likely that 
pgsql support isn't in your php installation (unless you explicitly 
state that you want it, it tends not to install it).  95% of the time, 
this is the problem with pgsql support in 4.x (well, in the week+ since 
it came out -- but it's been like 5 times!). ;-)

Hope it helps...

Jonathan

php code (written 'off the cuff,' since I don't have access to my server 
here...):

<?php
/*
* again, this is just done to make sure connectivity
* is working between php and postgres for eZ Publish (mysql support is
* also available if you want it...
*/
$link = |pg_connect|('localhost', 'root', '');
if (!$link) {
   die('Could not connect: ' . *pg_last_error*());
}
echo 'Connected successfully';
*pg_close*($link);
?>




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux