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 > HELP php/postgres
Pages (2): [1] 2 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
kusko
.amico.

User info:
Registered: Jul 2006
Posts: 32 (0.00 al dì)
Location: n'barquei
Corso:
Anno: 1
Time Online: 12:26:51 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
HELP php/postgres

dopo un giorno di sfaso totale,
chiediamo appello a qualche cervellone del dsy...
seguendo lettera per lettera le guide di html.it..
apache installato...FUNZIONANTE!
php..installato....FUNZIONANTE!
postgres installato...FUNZIONANTE!

i problemi arrivano nel momento in cui...
proviamo a connetere php al db...
ci da un errore fatale su pg_connect!
perchèèèèèèèèèèèèèèèè.....:?

allora abbiamo provato ad installare PEAR..
che casinoooooooo...le slides del prof(una slides)...nn sono precise,anzi...allora anche li...abbiamo seguito una guida di html.it...
risultato?errore...
non trova mdb2.php...
ma daiiiiiiiiiiiiiiiiiiiiiiii....:?:?:?:?


qualcuno puo aiutarci o sostenerci in questi momenti di sconforto totale?:twisted::evil::twisted:

potete consigliarci altre guide fatte bene oltre a quelle di html.it??

grazie

03-10-2008 16:57
Click Here to See the Profile for kusko Click here to Send kusko a Private Message Find more posts by kusko Add kusko to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
DeepBlue
tired guy

User info:
Registered: Sep 2003
Posts: 4258 (0.55 al dì)
Location: CSN
Corso: Info tlc
Anno:
Time Online: 52 Days, 8:40:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ma postgres è avviato?

__________________
~ get Debian! ~ get FreeBSD! ~ get OpenBSD! ~

03-10-2008 17:09
Click Here to See the Profile for DeepBlue Click Here to See the Blog of DeepBlue Click here to Send DeepBlue a Private Message Find more posts by DeepBlue Add DeepBlue to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
kusko
.amico.

User info:
Registered: Jul 2006
Posts: 32 (0.00 al dì)
Location: n'barquei
Corso:
Anno: 1
Time Online: 12:26:51 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by DeepBlue
ma postgres è avviato?


scusa cosa intendi con "avviato"..??
se va?
certo che va..
il db in postgres è gia finito!

03-10-2008 17:21
Click Here to See the Profile for kusko Click here to Send kusko a Private Message Find more posts by kusko Add kusko to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pinauz
.grande:maestro.

User info:
Registered: Nov 2004
Posts: 734 (0.10 al dì)
Location: a casa mai
Corso: NO: la nostra risposta al vostro calcio
Anno: !!!!!!!
Time Online: 3 Days, 17:43:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

in phpinfo visualizzi i moduli pgsql?

__________________
movimento ultras contro diffide e repressione

03-10-2008 18:04
Click Here to See the Profile for pinauz Click here to Send pinauz a Private Message Find more posts by pinauz Add pinauz to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
carmilla
regina dei pinguini

User info:
Registered: Oct 2005
Posts: 19 (0.00 al dì)
Location:
Corso: ComDig
Anno:
Time Online: 2 Days, 16:06:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

anche io avevo un problema del genere: tutto funzionante ma php non leggeva le funzioni pg_, quindi ne p_connect ne pg_query...
Mi hanno consigliato di provare ad installare questa estensione: da Start -- Programmi -- Postgres -- Stack Builder
come prima opzione selezionare postgres ovviamente, poi scegliere, sotto Web Development -- ApachePHP v2.2.4-5.13
Ora a me php funziona con postgres :)

__________________
- Perchè i pinguini possono andarsene e io no??
- Marty...i pinguini sono psicopatici...

03-10-2008 20:30
Click Here to See the Profile for carmilla Click here to Send carmilla a Private Message Find more posts by carmilla Add carmilla to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pinauz
.grande:maestro.

User info:
Registered: Nov 2004
Posts: 734 (0.10 al dì)
Location: a casa mai
Corso: NO: la nostra risposta al vostro calcio
Anno: !!!!!!!
Time Online: 3 Days, 17:43:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

questo avresti dovuto farlo all'installazione di postgres.. we ma te sarai mica la ragazza del silab???

__________________
movimento ultras contro diffide e repressione

03-10-2008 20:34
Click Here to See the Profile for pinauz Click here to Send pinauz a Private Message Find more posts by pinauz Add pinauz to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
shiffola
dsy core staff

User info:
Registered: Jan 2004
Posts: 916 (0.12 al dì)
Location: milano
Corso: ticom
Anno: 1
Time Online: 13 Days, 17:25:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Off-Topic:
pinauz, solo a me è concesso sapere chi siete :asd:

03-10-2008 21:08
Click Here to See the Profile for shiffola Click Here to See the Blog of shiffola Click here to Send shiffola a Private Message Find more posts by shiffola Add shiffola to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pinauz
.grande:maestro.

User info:
Registered: Nov 2004
Posts: 734 (0.10 al dì)
Location: a casa mai
Corso: NO: la nostra risposta al vostro calcio
Anno: !!!!!!!
Time Online: 3 Days, 17:43:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Talking

Originally posted by shiffola
Off-Topic:
pinauz, solo a me è concesso sapere chi siete :asd:


xkè tu chi sei???

__________________
movimento ultras contro diffide e repressione

03-10-2008 21:15
Click Here to See the Profile for pinauz Click here to Send pinauz a Private Message Find more posts by pinauz Add pinauz to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
kusko
.amico.

User info:
Registered: Jul 2006
Posts: 32 (0.00 al dì)
Location: n'barquei
Corso:
Anno: 1
Time Online: 12:26:51 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ragazzi mi fa piacere tutte le vostre belle presentazioni..ma a me nn funziona ancora niente...
allora ho fatto anche quello che mi ha detto carmilla..
ma niente...

sempre questo errore..

Fatal error: Call to undefined function pg_connect() in C:\www\pg_conn.php on line 2

ho provato anche a fare passo passo quello che dice il prof nelle sua slides: "slides-php-postgres.pdf"
e provando pg_conn...mi da sempre lo stesso errore visto sopra!

le versione che ho installato sono..

apache : Win32 Binary including OpenSSL 0.9.8h (MSI Installer): apache_2.2.9-win32-x86-openssl-0.9.8h-r2.msi

php: PHP 5.2.6 zip package

postgres: postgresql-8.3.4-1.zip

boh!

carmilla,facendo la procedura di installazione che mi hai detto tu..ad un certo punto mi chiedeva un numero di porta riferito ad apache..e c'èra di default 8080(che nn si poteva cambiare in 80)...nel installazione di apache io ho messo 80...potrebbe essere un problema quello??

04-10-2008 14:42
Click Here to See the Profile for kusko Click here to Send kusko a Private Message Find more posts by kusko Add kusko to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pinauz
.grande:maestro.

User info:
Registered: Nov 2004
Posts: 734 (0.10 al dì)
Location: a casa mai
Corso: NO: la nostra risposta al vostro calcio
Anno: !!!!!!!
Time Online: 3 Days, 17:43:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

php 5.2.6 non va bene con postgres! o cambi la versione oppure devi scaricare dei file qua
http://news.php.net/php.db/45036.

__________________
movimento ultras contro diffide e repressione

04-10-2008 22:07
Click Here to See the Profile for pinauz Click here to Send pinauz a Private Message Find more posts by pinauz Add pinauz to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
kusko
.amico.

User info:
Registered: Jul 2006
Posts: 32 (0.00 al dì)
Location: n'barquei
Corso:
Anno: 1
Time Online: 12:26:51 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by pinauz
php 5.2.6 non va bene con postgres! o cambi la versione oppure devi scaricare dei file qua
http://news.php.net/php.db/45036.


grazie mille non sapevo del problema della versione 5.2.6
ho copiato e incollato lo zip che ho trovato su quel sito..e adesso non mi da piu errori...

pero...è normale che sempre con il famoso codice trovato sulle slides del prof,facendo partire pg_conn.php mi restituisce pagina bianca??
e non "connessione avvenuta"??

boh!

grazie mille per le dritte cmq..

05-10-2008 22:41
Click Here to See the Profile for kusko Click here to Send kusko a Private Message Find more posts by kusko Add kusko to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pinauz
.grande:maestro.

User info:
Registered: Nov 2004
Posts: 734 (0.10 al dì)
Location: a casa mai
Corso: NO: la nostra risposta al vostro calcio
Anno: !!!!!!!
Time Online: 3 Days, 17:43:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

anche dopo il riavvio?

__________________
movimento ultras contro diffide e repressione

05-10-2008 22:59
Click Here to See the Profile for pinauz Click here to Send pinauz a Private Message Find more posts by pinauz Add pinauz to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
kusko
.amico.

User info:
Registered: Jul 2006
Posts: 32 (0.00 al dì)
Location: n'barquei
Corso:
Anno: 1
Time Online: 12:26:51 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by pinauz
anche dopo il riavvio?


YA anche dopo il riavvio di apache! il codice del mio pg_conn.php è questo..

<?php
$conn = pg_connect('host=localhost port=5432
dbname=db_test_user user=test_user
password=pass_test_user');
if(!$conn) {
die('Connessione fallita !<br/>');
} else {
echo "Connessione riuscita !<br/>";
}
?>

dovrebbe venire fuori scritto connessione riuscuta vero??

ma diooooooooooooooooooos....
ma che macelllooooooooooooooooo...

siamo nelle tue mani pinauz!

05-10-2008 23:03
Click Here to See the Profile for kusko Click here to Send kusko a Private Message Find more posts by kusko Add kusko to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pinauz
.grande:maestro.

User info:
Registered: Nov 2004
Posts: 734 (0.10 al dì)
Location: a casa mai
Corso: NO: la nostra risposta al vostro calcio
Anno: !!!!!!!
Time Online: 3 Days, 17:43:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

siamo a posto.. non sai in che mani ti stai mettendo!
Prova ad eseguire phpinfo(). Il modulo di postgres compare tra quelli caricati?
(ti dovrebbe comparire una serie di dati, in 2 tabelle, sotto il nome pgsql)

Attachment: psll.jpg
This has been downloaded 15 time(s).

__________________
movimento ultras contro diffide e repressione

05-10-2008 23:59
Click Here to See the Profile for pinauz Click here to Send pinauz a Private Message Find more posts by pinauz Add pinauz to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
kusko
.amico.

User info:
Registered: Jul 2006
Posts: 32 (0.00 al dì)
Location: n'barquei
Corso:
Anno: 1
Time Online: 12:26:51 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by pinauz
siamo a posto.. non sai in che mani ti stai mettendo!
Prova ad eseguire phpinfo(). Il modulo di postgres compare tra quelli caricati?
(ti dovrebbe comparire una serie di dati, in 2 tabelle, sotto il nome pgsql)


azz!!
no! non ce li ho....ma boiaaaaaaaa....

che macello...
e mettere una verisione precedente di php risolverebbe tutti i problemi??

06-10-2008 08:30
Click Here to See the Profile for kusko Click here to Send kusko a Private Message Find more posts by kusko Add kusko to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 05:28.    Post New Thread    Post A Reply
Pages (2): [1] 2 »   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.052 seconds (75.71% PHP - 24.29% MySQL) con 28 query.