<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum PostgreSQL - jak wlaczyc obsluge postgresa przez php ?]]></title>
	<link rel="self" href="http://forum.postgresql.org.pl/extern.php?action=feed&amp;tid=117&amp;type=atom"/>
	<updated>2009-01-02T15:01:29Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.postgresql.org.pl/viewtopic.php?id=117</id>
		<entry>
			<title type="html"><![CDATA[Odp: jak wlaczyc obsluge postgresa przez php ?]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=443#p443"/>
			<content type="html"><![CDATA[ehh
udalo sie !!! :)

ogolnie to przyczyna moglo byc :
-stara wersja beta postgresa (8.0 beta 2) teraz mam 8.3.5-2
- blad  'Call to undefined function pg_connect()' jest prawdodpodbnie jakims bugiem pod wina.  naprawienie go  poprzez wpisanie zmiennej systemowej PATH z adresem do katalogu bin postgresa (na podstawie jakiegos forum anglojezycznego)


dzieki wielkie za wszelkie rady i cierpliwosc :)]]></content>
			<author>
				<name><![CDATA[ash]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=494</uri>
			</author>
			<updated>2009-01-02T15:01:29Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=443#p443</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: jak wlaczyc obsluge postgresa przez php ?]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=423#p423"/>
			<content type="html"><![CDATA[ok php i apache obsluguje juz postgresa. mam juz sterowniki wszystkie.

mam w php.ini =php_pgsql.dll
do tego wszystkie wczesniejsze wyedytowane pliki czyli nasluch 

listen_adresses='*'

i w pliku pg_hba.conf te zmiany, ktore radziles mi wprowadzic...
ale nic to...
nadal ten sam blad...

 [error] [client xx.xx.xx.xx] PHP Fatal error:  Call to undefined function pg_connect() in D:\\WebServer\\htdocs\\bazaa.php on line 2


nie mam juz pojecia co dalej... :/]]></content>
			<author>
				<name><![CDATA[ash]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=494</uri>
			</author>
			<updated>2008-12-16T00:05:33Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=423#p423</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: jak wlaczyc obsluge postgresa przez php ?]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=420#p420"/>
			<content type="html"><![CDATA[ehh... tylko jak to zamontowac... troche szukalem i albo nie umiem szukac albo tego nie ma.
sprawdze jeszcze w dokumentacji samego apacza...]]></content>
			<author>
				<name><![CDATA[ash]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=494</uri>
			</author>
			<updated>2008-12-13T19:41:28Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=420#p420</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: jak wlaczyc obsluge postgresa przez php ?]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=419#p419"/>
			<content type="html"><![CDATA[możliwe ze apache nie ma wkompilowanej obslugi postgresa]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2008-12-13T19:38:18Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=419#p419</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: jak wlaczyc obsluge postgresa przez php ?]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=418#p418"/>
			<content type="html"><![CDATA[a reczywiscie
w logach :
Sat Dec 13 20:29:25 2008] [error] [client xx.xx.xx.xx] PHP Fatal error:  Call to undefined function pg_connect() in D:\\WebServer\\htdocs\\bazaa.php on line 2

czyli cos z pg_connect ... hm ale w kodzie wpisuje dobra nazwe bazy i uzytkownika...]]></content>
			<author>
				<name><![CDATA[ash]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=494</uri>
			</author>
			<updated>2008-12-13T19:32:15Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=418#p418</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: jak wlaczyc obsluge postgresa przez php ?]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=417#p417"/>
			<content type="html"><![CDATA[cos w logach apacza?]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2008-12-13T19:27:18Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=417#p417</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: jak wlaczyc obsluge postgresa przez php ?]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=416#p416"/>
			<content type="html"><![CDATA[HTTP 500 - Wewnętrzny błąd serwera  - ie

a w operze wiecznie sie laduje...]]></content>
			<author>
				<name><![CDATA[ash]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=494</uri>
			</author>
			<updated>2008-12-13T19:25:18Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=416#p416</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: jak wlaczyc obsluge postgresa przez php ?]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=415#p415"/>
			<content type="html"><![CDATA[co mowi www?]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2008-12-13T19:22:40Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=415#p415</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: jak wlaczyc obsluge postgresa przez php ?]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=414#p414"/>
			<content type="html"><![CDATA[nic innego nie zmienialem...
hmmm... zmienilem ta linijke iii po kilukrotnym zrestartowaniu pgAdmina odpalilo sie (!!!!! :) ) poprzez 
psql -h twoje_ip -U postgres template1


ale www nadal nie dziala...]]></content>
			<author>
				<name><![CDATA[ash]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=494</uri>
			</author>
			<updated>2008-12-13T19:10:42Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=414#p414</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: jak wlaczyc obsluge postgresa przez php ?]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=413#p413"/>
			<content type="html"><![CDATA[cos oszukujesz. sprawdz czy nie masz gdzies przypadkiem jakiegos przypadkowego znaku na poczatku jakiejs linijki, gdzieś przed # w pg_hba.conf, albo czy przypadkiem nie zmieniles nazwy pliku albo jego polozenia. kombinowales cos z konfiguracja w postgresql.conf poza listen_addresses?. Jesli stwierdzisz ze jest ok zmien linijke z 0.0.0.0./0 na linijke  
[code]host all all twoje_ip/32 trust[/code]
jesil po zrestartowaniu serwera nie bedzie dzialo sprawdz co postgres pisze w logach (logi konfiguruje sie w postgresql.conf)
jesli to polecenie 
[code]psql -h twoje_ip -U postgres template1[/code]
nie zadziala,
to z www tez pewnie nie pojdzie.
btw
do linijki 
[code]local all all trust[/code]
nawet nie dojdzie, w pliku pg_hba wazna jest kolejnosc wpisow a ty wczesniej masz
[code]local all all md5[/code]
czyli wymagasz hasla.]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2008-12-13T18:52:06Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=413#p413</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: jak wlaczyc obsluge postgresa przez php ?]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=412#p412"/>
			<content type="html"><![CDATA[local   all         all                               md5
host    all         all         127.0.0.1/32          md5
host    all         all         ::1/128               md5
local all all trust
host all all 0.0.0.0/0 trust]]></content>
			<author>
				<name><![CDATA[ash]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=494</uri>
			</author>
			<updated>2008-12-13T18:40:18Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=412#p412</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: jak wlaczyc obsluge postgresa przez php ?]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=411#p411"/>
			<content type="html"><![CDATA[pokaz wszystkie linijki z pg_hba.conf ktore nie maja na poczatku #]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2008-12-13T18:18:33Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=411#p411</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: jak wlaczyc obsluge postgresa przez php ?]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=410#p410"/>
			<content type="html"><![CDATA[tak jak wpsominalem wyzej nie dziala
tylko teraz po dopisaniu tych linijek w pg_hba wyskauje inny blad w konsoli a mianowicie :
psql: FATAL:  missing or erroneous pg_hba.conf file
HINT:  See server log for details.]]></content>
			<author>
				<name><![CDATA[ash]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=494</uri>
			</author>
			<updated>2008-12-13T17:58:45Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=410#p410</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: jak wlaczyc obsluge postgresa przez php ?]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=409#p409"/>
			<content type="html"><![CDATA[a to ci dziala
[code]psql -h twoje_ip -U postgres template1[/code]
?]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2008-12-13T17:52:23Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=409#p409</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: jak wlaczyc obsluge postgresa przez php ?]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=408#p408"/>
			<content type="html"><![CDATA[aha, no wiec zrobilem tak jak napisales...
lecz nadal nie dziala ... :/


moze mam blad gdzies w kodzie ? 
<?php
$db_handle = pg_connect(" dbname=template1 user=postgres password=haslo ");

if($db_handle){
  echo ' siem udalo ';
} else {
   echo' nie udalo sieee... ' ;
}

pg_close($db_handle);
?>]]></content>
			<author>
				<name><![CDATA[ash]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=494</uri>
			</author>
			<updated>2008-12-13T15:40:31Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=408#p408</id>
		</entry>
</feed>
