Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hallo zusammen!

Also zuerst mal mein System:

Windows 2000 Professional

Apache 1.3.24

PHP 4.2.0

PostgreSQL 8.0.

Hab das ganze brav installiert also PHP läuft nur mit PostgreSQL klappts nicht ganz so wie es soll...

Der Zugriff auf PostgreSQL via pgadminIII funktioniert..

Könntet ihr mir bitte mal einen Chrashkurs geben wie ich es schaffe auch auf Windows mit PHP+PostgreSQL zu entwicklen?

Danke & Gruß

Azrael

ist es denn zwingend nötig immer eine datenbank beim pg_connect() anzugeben?

ich möchte für den anfang nur testen ob eine verbindung von php zu postgresql klappt...

ja. vorerst schon.. das funktioniert ja bei mysql auch also dachte ich mal bei postgreSQL ist es ähnlich...

bei mysql kannst du zuerst nur nen connect auf die datenbank ausführen und dann machst du nen select_db.

Warning: pg_pconnect() unable to connect to PostgreSQL server: connectDBStart() -- socket() failed: errno=2 No such file or directory in c:\programme\apache group\apache\htdocs\test.php on line 2

An error occured.

bekomme ich nur bei dem hier:

$conn = pg_pconnect ("dbname=template1");

du könntest auch abfragen ob der letzte pg error == "Kann DB nicht finden" bzw "Kann Daenbankserver nicht finden" ist


<?php
pg_connect("dbname=freds_db user=fred password=freds_pass") or die("Couldn't Connect ".pg_last_error());
?>
[/PHP]

du musst halt ma schauen wie die genauen fehlermeldungen sind.

Vielleicht kannst du ja auch einen ErrorNumber abfragen irgendwie.

hallo!

also ich habs jetzt doch geschafft!

der connectstring hat nicht wirklich gestimmt..

gruß

stefan

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.