pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Can't connect to postgresql using php
6+ messages / 4 participants
[nested] [flat]

* Can't connect to postgresql using php
@ 2008-06-25 06:27 roche magsayo <rtmsoft@gmail.com>
  2008-06-25 06:55 ` Re: Can't connect to postgresql using php Chris <dmagick@gmail.com>
  0 siblings, 1 reply; 6+ messages in thread

From: roche magsayo @ 2008-06-25 06:27 UTC (permalink / raw)
  To: pgsql-php@postgresql.org.

Hello Everyone,

I am new to apache, postgresql, and php but i manage to installed it
in my winxp laptop. My php and apache are working and i can connect to
mysql database. However, i can't connect to postgresql. Please help,
need it badly...Thank in advanced.

Best regards,

-- 
Roche Tumlad Magsayo
rtmsoft@yahoo.com
rtmsoft@gmail.com



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Can't connect to postgresql using php
  2008-06-25 06:27 Can't connect to postgresql using php roche magsayo <rtmsoft@gmail.com>
@ 2008-06-25 06:55 ` Chris <dmagick@gmail.com>
  2008-06-25 09:37   ` Re: Can't connect to postgresql using php roche magsayo <rtmsoft@gmail.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Chris @ 2008-06-25 06:55 UTC (permalink / raw)
  To: roche magsayo <rtmsoft@gmail.com>; +Cc: pgsql-php@postgresql.org.

roche magsayo wrote:
> Hello Everyone,
> 
> I am new to apache, postgresql, and php but i manage to installed it
> in my winxp laptop. My php and apache are working and i can connect to
> mysql database. However, i can't connect to postgresql. Please help,
> need it badly...Thank in advanced.

What error do you get?

Have you installed the php-pgsql.dll file and also edited the php.ini
file to include it?

Have you restarted apache?

Does postgresql show up in a phpinfo() page?

-- 
Postgresql & php tutorials
http://www.designmagick.com/



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Can't connect to postgresql using php
  2008-06-25 06:27 Can't connect to postgresql using php roche magsayo <rtmsoft@gmail.com>
  2008-06-25 06:55 ` Re: Can't connect to postgresql using php Chris <dmagick@gmail.com>
@ 2008-06-25 09:37   ` roche magsayo <rtmsoft@gmail.com>
  2008-06-25 11:05     ` Re: Can't connect to postgresql using php Vince Vielhaber <vev@michvhf.com>
  0 siblings, 1 reply; 6+ messages in thread

From: roche magsayo @ 2008-06-25 09:37 UTC (permalink / raw)
  To: Chris <dmagick@gmail.com>; +Cc: pgsql-php@postgresql.org.

> What error do you get?
This is the error i get:
===========================
The website cannot display the page
 HTTP 500
   Most likely causes:
The website is under maintenance.
The website has a programming error.
==========================

> Have you installed the php-pgsql.dll file and also edited the php.ini
> file to include it?
I've already installed it and edited the php.ini
[PHP_PGSQL]
extension=php_pgsql.dll

> Have you restarted apache?
i've restarted many time, still i got those...

> Does postgresql show up in a phpinfo() page?
phpinfo(), it's work.



-- 
Roche Tumlad Magsayo
rtmsoft@yahoo.com
rtmsoft@gmail.com



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Can't connect to postgresql using php
  2008-06-25 06:27 Can't connect to postgresql using php roche magsayo <rtmsoft@gmail.com>
  2008-06-25 06:55 ` Re: Can't connect to postgresql using php Chris <dmagick@gmail.com>
  2008-06-25 09:37   ` Re: Can't connect to postgresql using php roche magsayo <rtmsoft@gmail.com>
@ 2008-06-25 11:05     ` Vince Vielhaber <vev@michvhf.com>
  2008-06-25 15:50       ` Re: Can't connect to postgresql using php Chandra ASGI Tech <chandraasgi@gmail.com>
  2008-06-25 15:54       ` Re: Can't connect to postgresql using php Chandra ASGI Tech <chandraasgi@gmail.com>
  0 siblings, 2 replies; 6+ messages in thread

From: Vince Vielhaber @ 2008-06-25 11:05 UTC (permalink / raw)
  To: roche magsayo <rtmsoft@gmail.com>; +Cc: Chris <dmagick@gmail.com>; pgsql-php

On Wed, 25 Jun 2008, roche magsayo wrote:

>> What error do you get?
> This is the error i get:
> ===========================
> The website cannot display the page
> HTTP 500
>   Most likely causes:
> The website is under maintenance.
> The website has a programming error.
> ==========================
>
>> Have you installed the php-pgsql.dll file and also edited the php.ini
>> file to include it?
> I've already installed it and edited the php.ini
> [PHP_PGSQL]
> extension=php_pgsql.dll
>
>> Have you restarted apache?
> i've restarted many time, still i got those...
>
>> Does postgresql show up in a phpinfo() page?
> phpinfo(), it's work.

Does this mean there's a section in phpinfo() for postgresql?

If it does, post the code you're using to connect.

Vince.
-- 
   Michigan VHF Corp.   http://www.nobucks.net/   http://www.CDupe.com/
            Bringing the world a little coloser to your business





^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Can't connect to postgresql using php
  2008-06-25 06:27 Can't connect to postgresql using php roche magsayo <rtmsoft@gmail.com>
  2008-06-25 06:55 ` Re: Can't connect to postgresql using php Chris <dmagick@gmail.com>
  2008-06-25 09:37   ` Re: Can't connect to postgresql using php roche magsayo <rtmsoft@gmail.com>
  2008-06-25 11:05     ` Re: Can't connect to postgresql using php Vince Vielhaber <vev@michvhf.com>
@ 2008-06-25 15:50       ` Chandra ASGI Tech <chandraasgi@gmail.com>
  1 sibling, 0 replies; 6+ messages in thread

From: Chandra ASGI Tech @ 2008-06-25 15:50 UTC (permalink / raw)
  To: Vince Vielhaber <vev@michvhf.com>; +Cc: roche magsayo <rtmsoft@gmail.com>; Chris <dmagick@gmail.com>; pgsql-php

Hi Vince,

Can you please specify the version of Apache and PHP?  It seems there is a
problem with the pgsql extension in PHP5.2.6 - as Jason Minion had mentioned
in another thread, please refer http://bugs.php.net/bug.php?id=44905.
I am using WAMPServer 2 (http://www.wampserver.com/en/index.php) - which
provides a good development environment for Windows based Apache - PHP.  It
allows you to install almost all the existing releases(
http://www.wampserver.com/en/add-ons.php) of Apache, PHP (and MySQL)  and
configure them easily - so that you can enable the MySQL or PgSQL modules as
you want in your PHP extensions.

I have PostgreSQL 8.2.4 and WampServer2 (Apache 2.2.6 and PHP 5.2.5)
installed on my XP laptop and it works fine. I also use phppgadmin (
http://sourceforge.net/projects/phppgadmin) which is similar to but not as
much userfriendly (atleast) like phpmyadmin.

Though I have not used myself, I still know that WampServer allows you to
install * any number of * latest releases of Apache and PHP and configure
and switch between them.

Thanks and Regards,
Chandra-ASGI


On Wed, Jun 25, 2008 at 7:05 AM, Vince Vielhaber <vev@michvhf.com> wrote:

> On Wed, 25 Jun 2008, roche magsayo wrote:
>
>  What error do you get?
>>>
>> This is the error i get:
>> ===========================
>> The website cannot display the page
>> HTTP 500
>>  Most likely causes:
>> The website is under maintenance.
>> The website has a programming error.
>> ==========================
>>
>> Have you installed the php-pgsql.dll file and also edited the php.ini
>>> file to include it?
>>>
>> I've already installed it and edited the php.ini
>> [PHP_PGSQL]
>> extension=php_pgsql.dll
>>
>> Have you restarted apache?
>>>
>> i've restarted many time, still i got those...
>>
>> Does postgresql show up in a phpinfo() page?
>>>
>> phpinfo(), it's work.
>>
>
> Does this mean there's a section in phpinfo() for postgresql?
>
> If it does, post the code you're using to connect.
>
> Vince.
> --
>  Michigan VHF Corp.   http://www.nobucks.net/   http://www.CDupe.com/<http://www.cdupe.com/;
>           Bringing the world a little coloser to your business
>
>
>
>
> --
> Sent via pgsql-php mailing list (pgsql-php@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-php
>

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Can't connect to postgresql using php
  2008-06-25 06:27 Can't connect to postgresql using php roche magsayo <rtmsoft@gmail.com>
  2008-06-25 06:55 ` Re: Can't connect to postgresql using php Chris <dmagick@gmail.com>
  2008-06-25 09:37   ` Re: Can't connect to postgresql using php roche magsayo <rtmsoft@gmail.com>
  2008-06-25 11:05     ` Re: Can't connect to postgresql using php Vince Vielhaber <vev@michvhf.com>
@ 2008-06-25 15:54       ` Chandra ASGI Tech <chandraasgi@gmail.com>
  1 sibling, 0 replies; 6+ messages in thread

From: Chandra ASGI Tech @ 2008-06-25 15:54 UTC (permalink / raw)
  To: Vince Vielhaber <vev@michvhf.com>; +Cc: roche magsayo <rtmsoft@gmail.com>; Chris <dmagick@gmail.com>; pgsql-php

Hi Vince,

Can you please specify the version of Apache and PHP?  It seems there is a
problem with the pgsql extension in PHP5.2.6 - as Jason Minion had mentioned
in another thread, please refer http://bugs.php.net/bug.php?id=44905.

I am using WAMPServer 2 (http://www.wampserver.com/en/index.php) - which
provides a good development environment for Windows based Apache - PHP.  It
allows you to install almost all the existing releases(
http://www.wampserver.com/en/add-ons.php) of Apache, PHP (and MySQL)  and
configure them easily - so that you can enable the MySQL or PgSQL modules as
you want in your PHP extensions.

I have PostgreSQL 8.2.4 and WampServer2 (Apache 2.2.6 and PHP 5.2.5)
installed on my XP laptop and it works fine. I also use phppgadmin (
http://sourceforge.net/projects/phppgadmin) which is similar to but not as
much userfriendly (atleast) like phpmyadmin.

Though I have not used myself, I still know that WampServer allows you to
install * any number of * latest releases of Apache and PHP and configure
and switch between them.

Thanks and Regards,
Chandra-ASGI

^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2008-06-25 15:54 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-06-25 06:27 Can't connect to postgresql using php roche magsayo <rtmsoft@gmail.com>
2008-06-25 06:55 ` Chris <dmagick@gmail.com>
2008-06-25 09:37   ` roche magsayo <rtmsoft@gmail.com>
2008-06-25 11:05     ` Vince Vielhaber <vev@michvhf.com>
2008-06-25 15:50       ` Chandra ASGI Tech <chandraasgi@gmail.com>
2008-06-25 15:54       ` Chandra ASGI Tech <chandraasgi@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox