Précédent   Forum des professionnels en informatique > PHP > Langage
Langage Forum sur le langage PHP, la POO, les conventions, la sécurité, etc. Avant de poster : FAQ Langage, toutes les FAQ PHP, cours langage et sources PHP
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 14/08/2008, 09h06   #1
Membre à l'essai
 
Inscription : février 2004
Messages : 53
Détails du profil
Informations forums :
Inscription : février 2004
Messages : 53
Points : 21
Points : 21
Par défaut Message Warning suite ligne de commande php sous Linux

Bonjour,

Je travaille sous Linux dans lequel il y a du PHP.

Lorsque sous linus je fait la commande suivante :

[root@ampli01lnx108 recette]# php -h


J'ai tout un tas de messages warning, est ce que quelqu'un sait ce que c'est et comment faire pour ne plus les avoir ?

Code X :
1
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
Content-type: text/html

PHP Notice:  Constant odbc_type already defined in Unknown on line 0
PHP Notice:  Constant odbc_binmode_passthru already defined in Unknown on line 0
PHP Notice:  Constant odbc_binmode_return already defined in Unknown on line 0
PHP Notice:  Constant odbc_binmode_convert already defined in Unknown on line 0
PHP Notice:  Constant sql_odbc_cursors already defined in Unknown on line 0
PHP Notice:  Constant sql_cur_use_driver already defined in Unknown on line 0
PHP Notice:  Constant sql_cur_use_if_needed already defined in Unknown on line 0
PHP Notice:  Constant sql_cur_use_odbc already defined in Unknown on line 0
PHP Notice:  Constant sql_concurrency already defined in Unknown on line 0
PHP Notice:  Constant sql_concur_read_only already defined in Unknown on line 0
PHP Notice:  Constant sql_concur_lock already defined in Unknown on line 0
PHP Notice:  Constant sql_concur_rowver already defined in Unknown on line 0
PHP Notice:  Constant sql_concur_values already defined in Unknown on line 0
PHP Notice:  Constant sql_cursor_type already defined in Unknown on line 0
PHP Notice:  Constant sql_cursor_forward_only already defined in Unknown on line 0
PHP Notice:  Constant sql_cursor_keyset_driven already defined in Unknown on line 0
PHP Notice:  Constant sql_cursor_dynamic already defined in Unknown on line 0
PHP Notice:  Constant sql_cursor_static already defined in Unknown on line 0
PHP Notice:  Constant sql_keyset_size already defined in Unknown on line 0
PHP Notice:  Constant sql_char already defined in Unknown on line 0
PHP Notice:  Constant sql_varchar already defined in Unknown on line 0
PHP Notice:  Constant sql_longvarchar already defined in Unknown on line 0
PHP Notice:  Constant sql_decimal already defined in Unknown on line 0
PHP Notice:  Constant sql_numeric already defined in Unknown on line 0
PHP Notice:  Constant sql_bit already defined in Unknown on line 0
PHP Notice:  Constant sql_tinyint already defined in Unknown on line 0
PHP Notice:  Constant sql_smallint already defined in Unknown on line 0
PHP Notice:  Constant sql_integer already defined in Unknown on line 0
PHP Notice:  Constant sql_bigint already defined in Unknown on line 0
PHP Notice:  Constant sql_real already defined in Unknown on line 0
PHP Notice:  Constant sql_float already defined in Unknown on line 0
PHP Notice:  Constant sql_double already defined in Unknown on line 0
PHP Notice:  Constant sql_binary already defined in Unknown on line 0
PHP Notice:  Constant sql_varbinary already defined in Unknown on line 0
PHP Notice:  Constant sql_longvarbinary already defined in Unknown on line 0
PHP Notice:  Constant sql_date already defined in Unknown on line 0
PHP Notice:  Constant sql_time already defined in Unknown on line 0
PHP Notice:  Constant sql_timestamp already defined in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_error in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_errormsg in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_setoption in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_autocommit in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_close in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_close_all in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_commit in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_connect in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_pconnect in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_cursor in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_exec in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_prepare in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_execute in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_fetch_row in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_fetch_into in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_field_len in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_field_scale in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_field_name in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_field_type in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_field_num in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_free_result in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_next_result in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_num_fields in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_num_rows in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_result in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_result_all in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_rollback in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_binmode in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_longreadlen in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_tables in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_columns in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_gettypeinfo in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_primarykeys in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_columnprivileges in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_tableprivileges in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_foreignkeys in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_procedures in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_procedurecolumns in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_specialcolumns in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_statistics in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_do in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - odbc_field_precision in Unknown on line 0
PHP Warning:  odbc:  Unable to register functions, unable to load in Unknown on line 0
Usage: php [-q] [-h] [-s [-v] [-i] [-f <file>] |  {<file> [args...]}
  -q             Quiet-mode.  Suppress HTTP Header output.
  -s             Display colour syntax highlighted source.
  -w             Display source with stripped comments and whitespace.
  -f <file>      Parse <file>.  Implies `-q'
  -v             Version number
  -C             Do not chdir to the script's directory
  -c <path>      Look for php.ini file in this directory
  -a             Run interactively
  -d foo[=bar]   Define INI entry foo with value 'bar'
  -e             Generate extended information for debugger/profiler
  -z <file>      Load Zend extension <file>.
  -l             Syntax check only (lint)
  -m             Show compiled in modules
  -i             PHP information
  -h             This help


Merci par avance.
__________________
Philippe Staron
Staron est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 14/08/2008, 09h44   #2
Modérateur
 
Avatar de sabotage
 
Homme Vincent
Inscription : juillet 2005
Messages : 14 929
Détails du profil
Informations personnelles :
Nom : Homme Vincent

Informations forums :
Inscription : juillet 2005
Messages : 14 929
Points : 16 383
Points : 16 383
Qu'est ce que tu souhaites faire ?
sabotage est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 14/08/2008, 16h11   #3
Membre à l'essai
 
Inscription : février 2004
Messages : 53
Détails du profil
Informations forums :
Inscription : février 2004
Messages : 53
Points : 21
Points : 21
Je souhaite executer des scripts PHP à partir d'un script shell.
__________________
Philippe Staron
Staron est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 15/08/2008, 22h55   #4
Expert Confirmé Sénior
 
Homme Laurent Willems
Expert Stop/Start
Inscription : septembre 2002
Messages : 2 555
Détails du profil
Informations personnelles :
Nom : Homme Laurent Willems
Âge : 33
Localisation : Belgique

Informations professionnelles :
Activité : Expert Stop/Start

Informations forums :
Inscription : septembre 2002
Messages : 2 555
Points : 4 279
Points : 4 279
Salut,

si tu nous présentais ton code, ça nous permettrait de voir ce qu'il se passe.
Mygale1978 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 22/08/2008, 13h46   #5
Membre à l'essai
 
Inscription : février 2004
Messages : 53
Détails du profil
Informations forums :
Inscription : février 2004
Messages : 53
Points : 21
Points : 21
En faite je suis dans la version 4.2.2 de PHP, sous RedHAt 9 :

La solution la voici :
Passer la commande suivante dans le script shell pour exécuter un fichier php :

php -f {nomFichier}.php --ini

A bientôt.
__________________
Philippe Staron
Staron est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 05h17.


 
 
 
 
Partenaires

Hébergement Web