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. > Community > Tech > [dbms]postgres-apache-php su windows
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
maynard80
.novellino.

User info:
Registered: Jul 2007
Posts: 3 (0.00 al dì)
Location: Milano (e non interland, tendo a precisare)
Corso: informatica
Anno: SESTO
Time Online: 12 Days, 14:28:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[dbms]postgres-apache-php su windows

Ciao ragazzi, ho installato:
Apache 1.3.33
PostgreSQL 8.0.1
Php 4.3
su windowsXP, apache funziona, php anche in quanto la semplice funzione phpinfo ha visualizzato la pagina di informazioni.
Tra le informazioni non vedo una sezione dedicata a postgreSQL.
Che modifiche devo fare per far vedere a php postgres? (postgres da se funziona da riga di comando ed entro tranquillamente in template1 e template0)

Come ultima dimostrazione del fatto che mi manca postgres allego il codice di una pagina di prova php:

code:
<?PHP // Variabili $server = "127.0.0.1"; $port = "5432"; $db = "template0"; $auth = "password"; $user = "admin"; $passwd = "alex"; // Connessione $connect = pg_Connect("host=$server port=$port dbname=$db ". "user=$user password=$passwd authtype=$auth"); if (!$connect) { echo "Problemi nella connessione.\n"; exit; } $value = pg_Exec($connect,"CREATE USER nomeutente WITH PASSWORD 'password';"); if (!$value) { echo "Errore nella query richiesta.\n"; exit; } echo "Query eseguita con successo.\n"; pg_Close($connect); ?>


sul browser vedo questo messaggio di errore
code:
Fatal error: Call to undefined function: pg_connect() in c:\programmi\apache group\apache\htdocs\provaconnessione.php on line 11

__________________
msn Messenger: giamma80 at tiscali.it
ATHENA !

13-02-2005 17:52
Click Here to See the Profile for maynard80 Click here to Send maynard80 a Private Message Find more posts by maynard80 Add maynard80 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 02:56.    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.118 seconds (67.46% PHP - 32.54% MySQL) con 22 query.