pg.ddx.io pgsql-php@postgresql.org mailing list archive
help / color / mirror / Atom feedPostgreSQL+PHP+Win98
3+ messages / 2 participants
[nested] [flat]
* PostgreSQL+PHP+Win98
@ 2002-04-11 22:29 Cornelia Boenigk <poppcorn@cornelia-boenigk.de>
2002-04-12 00:06 ` Re: PostgreSQL+PHP+Win98 Simeo Reig <simreig@terra.es>
0 siblings, 1 reply; 3+ messages in thread
From: Cornelia Boenigk @ 2002-04-11 22:29 UTC (permalink / raw)
To: pgsql-php
Hello everybody
I am trying to connect from a PHP-Skript to a PostgreSQL Database
running with Cygwin under Win98. But didn't succeed yet;-(
Anytime I call the script I get an error-message:
Unable to connect to PostgreSQL-Server: connectDBStart() --socket()
failed: errno 0 No error in skriptfile on line 19
The Apache is running and the postmaster was started with the
option -i
Any help is welcome
Greetings
Conni
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: PostgreSQL+PHP+Win98
2002-04-11 22:29 PostgreSQL+PHP+Win98 Cornelia Boenigk <poppcorn@cornelia-boenigk.de>
@ 2002-04-12 00:06 ` Simeo Reig <simreig@terra.es>
2002-04-12 10:30 ` Re: PostgreSQL+PHP+Win98 Cornelia Boenigk <poppcorn@cornelia-boenigk.de>
0 siblings, 1 reply; 3+ messages in thread
From: Simeo Reig @ 2002-04-12 00:06 UTC (permalink / raw)
To: Cornelia Boenigk <poppcorn@cornelia-boenigk.de>; pgsql-php
> ...
> Unable to connect to PostgreSQL-Server: connectDBStart() --socket()
> failed: errno 0 No error in skriptfile on line 19
> ...
It would be a nice idea to put the content of line 19 ;-))
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: PostgreSQL+PHP+Win98
2002-04-11 22:29 PostgreSQL+PHP+Win98 Cornelia Boenigk <poppcorn@cornelia-boenigk.de>
2002-04-12 00:06 ` Re: PostgreSQL+PHP+Win98 Simeo Reig <simreig@terra.es>
@ 2002-04-12 10:30 ` Cornelia Boenigk <poppcorn@cornelia-boenigk.de>
0 siblings, 0 replies; 3+ messages in thread
From: Cornelia Boenigk @ 2002-04-12 10:30 UTC (permalink / raw)
To: pgsql-php
Hi Simeo
You helped me to find the fault - it is working now;-)
I haven't set all connection options. It seems that PostgreSQL needs a
nearly complete connection string when running under Windows while
running under Linux it only needs the name of the database.
> It would be a nice idea to put the content of line 19 ;-))
Yes, you are right, sorry.
$host = "localhost";
$port = "5432";
$user = "zwerg98";
$password = "";
$dbname = "mz";
// eine Verbindung zum Datenbankserver aufbauen
$conn = pg_connect("dbname=$dbname user=$user port=$port host=$host");
<-- Line 19
Regards
Conni
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2002-04-12 10:30 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-04-11 22:29 PostgreSQL+PHP+Win98 Cornelia Boenigk <poppcorn@cornelia-boenigk.de>
2002-04-12 00:06 ` Simeo Reig <simreig@terra.es>
2002-04-12 10:30 ` Cornelia Boenigk <poppcorn@cornelia-boenigk.de>
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