Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi A - F > Basi di dati ~ comunicazione digitale > Problemi connessione db con php
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Pepita_k
.fedelissimo.

User info:
Registered: May 2007
Posts: 43 (0.01 al dì)
Location: milano
Corso: comunicazione digitale
Anno: terzo
Time Online: 11:10:45 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Problemi connessione db con php

Ciao ragazzi,
ho assolutamente bisogno di un aiuto!!!!
Ho installato php 5.2.9 e apache 2.2 seguendo tutti i passaggi su html.it, funzionano correttamente!
Ho installato postgres 8.3.7, funziona correttamente!

Il mio problema ora che ho finito il sito è collegarlo al db con il file:
<?php
$db = pg_connect('host=localhost port=5432 dbname=postgres user=postgres password=pepita85');
if(!$db) {
echo "Connessione fallita !";
}else{
echo "Connessione riuscita !";
}
?>
mi da l'errore:
Fatal error: Call to undefined function pg_connect() in C:\www\pg_conn.php on line 4
ho abilitato l'estensione:
extension=php_pgsql.dll
il file che modifico php.ini è nella giusta cartella:C:/php/php.ini e se modifico altri parametri li aggiorna...
..ora non so più che fare!!

aiuto..grazie

23-09-2009 09:45
Click Here to See the Profile for Pepita_k Click here to Send Pepita_k a Private Message Find more posts by Pepita_k Add Pepita_k to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
il_gege
_Kantina27-PunkRock_

User info:
Registered: Oct 2006
Posts: 283 (0.04 al dì)
Location: Seregno
Corso: Comunicazione Digitale
Anno: Oramai fuori.
Time Online: 3 Days, 18:32:52 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Le ultime versioni di Php, da quello che ne so io, danno miriadi di problemi con Postgres, ho provato un sacco di soluzioni, ma nessuna che funzionasse seriamente.

Per evitare il problema puoi provare a scaricare pacchetti come XAMPP o EasyPhp, senza installare MySql. Oppure provare WAMPP che è un pacchetto come i citati che ha installato già Postgres, con un'interfaccia web per la gestione del db.

__________________
Kantina27 - Punk Rock
MySpace Profile

23-09-2009 11:12
Click Here to See the Profile for il_gege Click here to Send il_gege a Private Message Visit il_gege's homepage! Find more posts by il_gege Add il_gege to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Pepita_k
.fedelissimo.

User info:
Registered: May 2007
Posts: 43 (0.01 al dì)
Location: milano
Corso: comunicazione digitale
Anno: terzo
Time Online: 11:10:45 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ho risolto resettando il tutto e installando una versione inferiore di apache e php...FATTA!!

Grazie

23-09-2009 13:51
Click Here to See the Profile for Pepita_k Click here to Send Pepita_k a Private Message Find more posts by Pepita_k Add Pepita_k to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
iris
.fedelissimo.

User info:
Registered: Nov 2007
Posts: 45 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 5 Days, 13:09:13 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Pepita_k
Ho risolto resettando il tutto e installando una versione inferiore di apache e php...FATTA!!

Grazie


potresti dirmi che versioni hai installato? ho il tuo stesso problema ma non sono ancora riuscita a risolverlo. grazie!

23-09-2009 15:57
Click Here to See the Profile for iris Click here to Send iris a Private Message Find more posts by iris Add iris to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 23:01.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.166 seconds (45.70% PHP - 54.30% MySQL) con 25 query.