PostgreSQL
La base de données la plus sophistiquée au monde.

Ouverture de session

Navigation

Contactez-nous

Administration du site :
"equipe chez postgresqlfr point org"

Contact presse :
"fr chez postgresql point org"

Contact association :
"bureau chez postgresqlfr point org"

Questions PostgreSQL :
 IRC :
  serveur irc.freenode.net
  canal #postgresqlfr

Recherche

Accéder aux archives

« Octobre 2008  
Lun Mar Mer Jeu Ven Sam Dim
  2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31  

Syndication

Flux XML

Sondage

Quelle est la version de PostgreSQL la plus répandue sur vos serveurs ?
8.3
10%
8.2
42%
8.1
40%
8.0
2%
7.4
6%
7.3 ou antérieure
0%
Nombre de votes: 48

problème php4 pgsql

Technique - php | problème php4 pgsql

Par fidaj le 16/02/2007 - 16:03

Bonjour
J'ai installé un portail entièrement fait en php4. lorsque je saisit l'adresse du portail, j'ai toujours le message "Could Not Connect to Database:". lorsque j'ai essayé de débugguer, j'ai obtenu le messae suivant: Warning: pg_pconnect() [function.pg-pconnect]: Cannot create new link. Too many open links (0)
J'ai alors regardé les log du serveur apache2 et voilà ce que j'ai obtenu:
ct file: No such file or directory in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_connect in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_pconnect in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_close in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_connection_status in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_connection_busy in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_connection_reset in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_host in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_dbname in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_port in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_tty in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_options in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_ping in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_query in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_send_query in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_cancel_query in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_fetch_result in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_fetch_row in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_fetch_assoc in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_fetch_array in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_fetch_object in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_fetch_all in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_affected_rows in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_get_result in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_result_seek in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_result_status in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_free_result in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_last_oid in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_num_rows in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_num_fields in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_field_name in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_field_num in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_field_size in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_field_type in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_field_prtlen in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_field_is_null in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_get_notify in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_get_pid in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_result_error in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_last_error in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_last_notice in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_put_line in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_end_copy in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_copy_to in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_copy_from in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_trace in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_untrace in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_lo_create in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_lo_unlink in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_lo_open in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_lo_close in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_lo_read in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_lo_write in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_lo_read_all in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_lo_import in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_lo_export in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_lo_seek in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_lo_tell in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_escape_string in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_escape_bytea in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_unescape_bytea in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_client_encoding in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_set_client_encoding in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_meta_data in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_convert in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_insert in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_update in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_delete in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_select in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_exec in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_getlastoid in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_cmdtuples in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_errormessage in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_numrows in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_numfields in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_fieldname in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_fieldsize in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_fieldtype in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_fieldnum in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_fieldprtlen in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_fieldisnull in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_freeresult in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_result in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_loreadall in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_locreate in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_lounlink in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_loopen in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_loclose in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_loread in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_lowrite in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_loimport in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_loexport in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_clientencoding in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - pg_setclientencoding in Unknown on line 0
PHP Warning: pgsql: Unable to register functions, unable to load in Unknown on line 0

Je ne comprend pas le problème .J'utilise debian et j'ai installé le package php4-pgsql
Merci pour votre aide

Options d'affichage des commentaires

Sélectionnez la méthode d'affichage des commentaires que vous préférez, puis cliquez sur "Sauvegarder les paramètres" pour activer vos changements.

Bonjour Il semblerait que

Christophe Chauvet/ = 16 FĂ©vrier, 2007 - 16:20

Bonjour

Il semblerait que la librairie postgresql se charge 2 fois, regarder du coté de votre php.ini au niveau des extensions.

Cordialement.

Christophe Chauvet
KrysKool.org


ça marche

fidaj/ = 16 FĂ©vrier, 2007 - 18:11

Merci
effectivement, j'avais l'extension pgsql.so déclaré deux fois, dans deux fichiers différents.


© PostgreSQLFr, tous droits rĂ©servĂ©s.
Site déclaré à la CNIL sous le numéro 1074678, conformément à la Loi en vigueur.