Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1555 connectés 

  FORUM HardWare.fr
  Programmation
  PHP

  Comment installer une lib GD2

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Comment installer une lib GD2

n°259735
FOUnd
Posté le 03-12-2002 à 14:40:59  profilanswer
 

Bonjour,
 
Je debute, et j'ai trouvé un code source en PHP pour faire de vignettes d'images.
 
Je lance easyphp et index.php mais j'ai une erreur.
Il me manque une Lib GD2 .
 
Jai trouvé sur le net la lib, mais je ne sais pas comment l'installer!
 
Pouvez-vous m'aider?
 
merçi bcp

mood
Publicité
Posté le 03-12-2002 à 14:40:59  profilanswer
 

n°259796
omega2
Posté le 03-12-2002 à 15:46:06  profilanswer
 

Je l'ai jamais fait, mais il y a pas un install.txt ou un readme.doc ou autre fichier avec un nom ressemblant?

n°260068
FOUnd
Posté le 03-12-2002 à 18:26:50  profilanswer
 

omega2 a écrit a écrit :

Je l'ai jamais fait, mais il y a pas un install.txt ou un readme.doc ou autre fichier avec un nom ressemblant?




 
ya pas! :(

n°564786
Dawa
www.shootmeagain.com
Posté le 12-11-2003 à 11:37:18  profilanswer
 

Salut ! J'ai actuellement le meme probleme...
 
 
j'ai suivi ces instructions pour activer la gd2 :
 
 

Citation :

For Windows users who wants to enable the GD libary:
 
It took me some while to figure this out, but in the end it worked (and still does) great.
 
1. First download the latest (stable recommended) version of php
2. Unzip to f.ex c:\php\
 
3. Now you should have a file in c:\php\ that's named php.ini.dist (or something like that). Rename that to php.ini and copy it to the root of you Windows directory.
 
4. Open the php.ini file (the easiers way is to open the run promnt at your start menu and just type php.ini and hit enter).
 
5. Search (ctrl+f) for extension_dir. The default value is set to "./", make it to "./extensions"
 
6. Now you need to find where in the php.ini the modules for Windows is located. Search for gd.
 
7. Remove the ; char infront of this line: extension=php_gd2.dll
 
8. Try make a php script with some image functions and see if it works. F.ex $im = imageCreate("test.jpg" );
If you get a message that says something like imageCreate function doesn't exist the gd libary is not loaded.
 
9. That's all. Have fun using GD in Windows :)


 
 
mais ca ne marche toujours pas : Fatal error: Call to undefined function: imagecreatefromjpeg() in e:\program files\easyphp1-7\www\whyme\thumb.php on line 5
 
 
 
qqun aurait une idée? :??:
 
Merci bcp !


---------------
SHOOT ME AGAIN WEBZINE
n°564825
dropsy
et bonne chance surtout...
Posté le 12-11-2003 à 13:00:54  profilanswer
 

après avoir décommenté le ligne extension=php_gd2.dll dans le php.in, il faut redémarrer apache (si c'est ton serveur web ;) )

n°564843
Dawa
www.shootmeagain.com
Posté le 12-11-2003 à 13:38:45  profilanswer
 

coool ca marche merci beaucoup [:prosterne]


---------------
SHOOT ME AGAIN WEBZINE
n°1206643
chico008
what the wookie says ?
Posté le 24-09-2005 à 21:31:13  profilanswer
 

moi j'ai un soucis avec ça.
j'ai easyphp 1.8 installer.
cette librairie est presente, mais quand j'utilise une fonction imagecreate(), il ne la reconnait pas (call to undefined function ...)
quelqu'un aurait une idée ? l'utilisation de la fonction aurait elle changer ?


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  PHP

  Comment installer une lib GD2

 

Sujets relatifs
Comment installer un fichier .jar correctement?INSTALLER .NET avis aux connaisseurs
[newby inside] installer et utiliser dbd::oracle[openGL] comment installer la GLUT avec windows nt4 ?
[perl] installer des modulesComment virer un component de delphi pr en installer un autre?
Un petit rappel svp : comment installer easyphp en local... ?un tchat gratuit et simple pour l'installer sur son site ?
[Cygwin et Emacs] Je patauge pour savoir quoi installerImpossible d'installer Visual c++ 4 sous windows NT - URGENT
Plus de sujets relatifs à : Comment installer une lib GD2


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR