RE: new connection with pg_pconnect

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

 



> [snip]
> I then have the page main.php which has
>
> <?php
> global $sys_dbhost,$sys_dbuser,$sys_dbpasswd;
> $dbconn = pg_connect("user=$sys_dbuser dbname=bisprojects
> host=$sys_dbhost password=$sys_dbpasswd"); echo '->'.$dbconn.'<-'; ?>
>
> the scripts just dies whenever I include the pg_connect function... if I
> change
>
> echo '->'.$dbconn.'<-';
> to
> echo '->==='.$dbconn.'====<-';
>
> I'll still see -><- on my page
> if I remove the pg_connect function, I'll see
> ->=======<-;
>
> Basically, no changes to the page take effect when I have the pg_connect
> function in place... it just dies or something...
> [/snip]
>
> Hmmm, strange.
>
> I used your code, exactly as it is above (but with my username,
> password, db and server info) and it works fine.
>
> Check your error logs and see if there's anything showing up there and
> let us know what you find.
>
> Pablo
>


Thanks for the reply... I checked apache's error logs and it's given a
Segmentation fault when trying to connect

[Tue Oct 19 14:11:29 2004] [notice] child pid 28586 exit signal
Segmentation fault (11)

Just to recap, I already have an existing pg_pconnect[ion] open and am
trying to open a new one...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux