Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [Postgres][MySQL][PHP] Jak połączyć to wszystko, potrzebna pomoc
escobar1983
post 22.06.2008, 15:27:57
Post #1





Grupa: Zarejestrowani
Postów: 198
Pomógł: 0
Dołączył: 31.01.2008

Ostrzeżenie: (0%)
-----


Witam mam do zrobienia projekt we flashu. Z tego co sie orientuje można baze danych podłączyć do flash za pośrednictwem php. Projekt to obsługa dwóch baz danych. Wbrałem do tego celu MySql i Postgresa (musze na tym silniku). Używam WAMPSERWER i jak wiadomo domyślnie jest tam MySQL. Pytanie to takie jak dołączyć do wampa postgresa ? Czy są jakieś przeciwskazania co do ilości baz danych obsługiwanych przez apache? Posze o jakiekolwiek informacje na ten temat. Pozdrawiam i z góry dziekuje za pomoc.
Go to the top of the page
+Quote Post
wipo
post 22.06.2008, 17:45:45
Post #2





Grupa: Zarejestrowani
Postów: 856
Pomógł: 19
Dołączył: 30.08.2005
Skąd: 100lica

Ostrzeżenie: (0%)
-----


Apacze jako serwer www nie łączyc się w bazami danych. Chyba ze ma obslugiwac virtualhosty

do łączenia się z bazami danych używasz interpretera (jak php). Tutaj limitów nie ma.


--------------------
Go to the top of the page
+Quote Post
escobar1983
post 22.06.2008, 18:04:31
Post #3





Grupa: Zarejestrowani
Postów: 198
Pomógł: 0
Dołączył: 31.01.2008

Ostrzeżenie: (0%)
-----


Ok , tak wiec w czym rzecz ze mi na wampie nie chce sie polaczyc z postgresem?
Go to the top of the page
+Quote Post
wipo
post 22.06.2008, 19:14:35
Post #4





Grupa: Zarejestrowani
Postów: 856
Pomógł: 19
Dołączył: 30.08.2005
Skąd: 100lica

Ostrzeżenie: (0%)
-----


a wydaj polecenie phpinfo() i zobacz czy masz wkompilowaną obsluge postgresa


--------------------
Go to the top of the page
+Quote Post
escobar1983
post 22.06.2008, 19:28:13
Post #5





Grupa: Zarejestrowani
Postów: 198
Pomógł: 0
Dołączył: 31.01.2008

Ostrzeżenie: (0%)
-----


Nie mam jej wkompilowanej:/ co zrobic??
Go to the top of the page
+Quote Post
wipo
post 22.06.2008, 19:33:42
Post #6





Grupa: Zarejestrowani
Postów: 856
Pomógł: 19
Dołączył: 30.08.2005
Skąd: 100lica

Ostrzeżenie: (0%)
-----


Jak uzywasz windy to pozostaje google albo dokumentacja. Jak *nix to mozesz pokompilowac sobie wszystko ze zrodel


--------------------
Go to the top of the page
+Quote Post
escobar1983
post 22.06.2008, 19:35:18
Post #7





Grupa: Zarejestrowani
Postów: 198
Pomógł: 0
Dołączył: 31.01.2008

Ostrzeżenie: (0%)
-----


Wip mozesz jasniej? smile.gif
moze jakis przyklad?
Szukalem juz na google i czyatalem dokumentacje:/
Go to the top of the page
+Quote Post
Liko
post 22.06.2008, 22:36:08
Post #8





Grupa: Zarejestrowani
Postów: 436
Pomógł: 6
Dołączył: 8.11.2003
Skąd: Szczecin

Ostrzeżenie: (0%)
-----


Escobar1983: Ściągasz bazę PostreSQL http://www.postgresql.org/ftp/binary/v8.3.3/win32/. Instalujesz. Potem otwierasz plik php.ini o usuwasz ; przed php_pgsql.dll w sekcji extension. Restartujesz WAMP-a. Ściągasz http://phppgadmin.sourceforge.net/ (odpowiednik PhpMyAdmin). Dalej to już tworzysz bazę w PgSQL i działasz smile.gif

Ten post edytował Liko 22.06.2008, 22:36:26
Go to the top of the page
+Quote Post
escobar1983
post 23.06.2008, 17:34:46
Post #9





Grupa: Zarejestrowani
Postów: 198
Pomógł: 0
Dołączył: 31.01.2008

Ostrzeżenie: (0%)
-----


Juz wysiadam. Zainstalowalem Apache 2.2 PHP 5.26 i Postgres 8.3.3-1 i nie widac tych modułów phph_pgsql :/ Zrobilem juz wszystko. Dodalem extension itp. I nadal jak odpalam phpinfo() nie widzi mi postgresa. I wyskakuja bledy w logach ze nie moze zaladowac dynamicznie bibliotek :/ Pomocy!!

Kod
[Mon Jun 23 18:06:47 2008] [notice] Parent: Received restart signal -- Restarting the server.
[Mon Jun 23 18:06:47 2008] [notice] Child 1480: Exit event signaled. Child process is ending.
httpd.exe: Could not reliably determine the server's fully qualified domain name, using [url="http://192.168.1.4/"]192.168.1.4[/url] for ServerName
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:/serwer/php/ext/php_pdo_pgsql.dll' - Nie mo\xbfna odnale\x9f\xe6 okre\x9clonego modu\xb3u.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:/serwer/php/ext/php_pgsql.dll' - Nie mo\xbfna odnale\x9f\xe6 okre\x9clonego modu\xb3u.\r\n in Unknown on line 0
[Mon Jun 23 18:06:47 2008] [notice] Apache/2.2.9 (Win32) PHP/5.2.6 configured -- resuming normal operations
[Mon Jun 23 18:06:47 2008] [notice] Server built: Jun 13 2008 04:04:59
[Mon Jun 23 18:06:47 2008] [notice] Parent: Created child process 2788
httpd.exe: Could not reliably determine the server's fully qualified domain name, using [url="http://192.168.1.4/"]192.168.1.4[/url] for ServerName
httpd.exe: Could not reliably determine the server's fully qualified domain name, using [url="http://192.168.1.4/"]192.168.1.4[/url] for ServerName
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:/serwer/php/ext/php_pdo_pgsql.dll' - Nie mo\xbfna odnale\x9f\xe6 okre\x9clonego modu\xb3u.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:/serwer/php/ext/php_pgsql.dll' - Nie mo\xbfna odnale\x9f\xe6 okre\x9clonego modu\xb3u.\r\n in Unknown on line 0
[Mon Jun 23 18:06:47 2008] [notice] Child 2788: Child process is running
[Mon Jun 23 18:06:48 2008] [notice] Child 1480: Released the start mutex
[Mon Jun 23 18:06:48 2008] [notice] Child 2788: Acquired the start mutex.
[Mon Jun 23 18:06:48 2008] [notice] Child 2788: Starting 64 worker threads.
[Mon Jun 23 18:06:49 2008] [notice] Child 1480: All worker threads have exited.
[Mon Jun 23 18:06:49 2008] [notice] Child 2788: Starting thread to listen on port 80.
[Mon Jun 23 18:06:49 2008] [notice] Child 1480: Child process is exiting

log error z apacha

Temat zakmniety!! Problem był tego rzędu że te biblioteki z wersji pho 5.2.6 sa złe wystraczy sciągnąc je z wersji np. 5.2.5 .

http://bugs.php.net/bug.php?id=44931

Dziekuje wszystkim za pomoc i pozdrawiam.exclamation.gif
O to rozwiązanie problemu. czasem trzeba sie samemu nameczyć z tym ale warto
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 10:00