WampServer

Apache, PHP, MySQL on Windows 

 
  • Accueil forum
  • Retour à WampServer
  • presentation
  • Download
  • Addons
  • Formations
  • Alter Way

 
Voir le sujet: Précédent•Suivant
Aller à : Liste des Forums•Liste des messages•Nouvelle discussion•Recherche•Connexion•Imprimer la vue
Problème php en ligne de commande
Envoyé par: Nicolas Hoizey (---.ppp.tiscali.fr)
Date: 17 July 2004 à 18:08

Bonjour,

je viens de découvrir WAMP qui me plait beaucoup, étant déjà utilisateur de EasyPHP ...

Par contre, j'ai un soucis avec les versions exécutables en ligne de commande de PHP.

Il y a php.exe, php-win.exe et php-cgi.exe, mais pour les trois j'ai les messages suivants lorsque j'essaie de les utiliser en ligne de commande (pour pear) :

PHP Warning: PHP Startup: <┴<: Unable to initialize module
Module compiled with module API=20010901, debug=0, thread-safety=1
PHP compiled with module API=20040412, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: ╝X┤: Unable to initialize module
Module compiled with module API=20010901, debug=0, thread-safety=1
PHP compiled with module API=20040412, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: îq<: Unable to initialize module
Module compiled with module API=20010901, debug=0, thread-safety=1
PHP compiled with module API=20040412, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: ΣÉ<: Unable to initialize module
Module compiled with module API=20010901, debug=0, thread-safety=1
PHP compiled with module API=20040412, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: LA<: Unable to initialize module
Module compiled with module API=20010901, debug=0, thread-safety=1
PHP compiled with module API=20040412, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: Σa╖: Unable to initialize module
Module compiled with module API=20010901, debug=0, thread-safety=1
PHP compiled with module API=20040412, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: ¼Q<: Unable to initialize module
Module compiled with module API=20010901, debug=0, thread-safety=1
PHP compiled with module API=20040412, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: ÿh<: Unable to initialize module
Module compiled with module API=20010901, debug=0, thread-safety=1
PHP compiled with module API=20040412, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: H¿╕: Unable to initialize module
Module compiled with module API=20010901, debug=0, thread-safety=1
PHP compiled with module API=20040412, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: d7╗: Unable to initialize module
Module compiled with module API=20010901, debug=0, thread-safety=1
PHP compiled with module API=20040412, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: ╝A<: Unable to initialize module
Module compiled with module API=20010901, debug=0, thread-safety=1
PHP compiled with module API=20040412, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: LU?: Unable to initialize module
Module compiled with module API=20010901, debug=0, thread-safety=1
PHP compiled with module API=20040412, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: ▄└┤: Unable to initialize module
Module compiled with module API=20010901, debug=0, thread-safety=1
PHP compiled with module API=20040412, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: └I╡: Unable to initialize module
Module compiled with module API=20010901, debug=0, thread-safety=1
PHP compiled with module API=20040412, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: ö²>: Unable to initialize module
Module compiled with module API=20010901, debug=0, thread-safety=1
PHP compiled with module API=20040412, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: ─┬<: Unable to initialize module
Module compiled with module API=20010901, debug=0, thread-safety=1
PHP compiled with module API=20040412, debug=0, thread-safety=1
These options need to match
in Unknown on line 0


Un problème avec les modules fournis, semble-t'il ...

Options: Répondre•Citer ce Message
Re: Problème php en ligne de commande
Envoyé par: Romain Bourdon (---.fbx.proxad.net)
Date: 17 July 2004 à 18:33

Hello Nico,

cela est dû au fait que le fichier php.ini de wamp5 se trouve dans le repertoire apache.

Du coup, lorsque tu lances PHP en CGI (il ne tourne pas avec apache) , il va chercher son php.ini dans le repertoire par defaut : c:\windows

Il utilise donc un php.ini (et donc les modules) d'une autre installation (easyphp ou autre).

Le plus simple est de mettre une copie du fichier php.ini (qui se trouve dans le rep apache) dans le repertoire php de wamp afin qu'il soit utilisé à la place.

bonne fin de WE

Romain

Options: Répondre•Citer ce Message
Re: Problème php en ligne de commande
Envoyé par: Nicolas Hoizey (---.ppp.tiscali.fr)
Date: 17 July 2004 à 19:17

Super, c'est bien ça, merci Romain !

Options: Répondre•Citer ce Message


Aller à : Liste des Forums•Liste des messages•Recherche•Connexion
Désolé, seuls les utilisateurs connectés peuvent envoyer des messages dans ce forum.
Cliquer ici pour se connecter

design by jidePowered by Alter Way get firefoxget PHP