note 33351 added to function.imagecreatefromjpeg

From: Date: Mon, 23 Jun 2003 19:00:13 +0000
Subject: note 33351 added to function.imagecreatefromjpeg
Groups: php.notes 
Request: Send a blank email to php-notes+get-50891@lists.php.net to get a copy of this message
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 :) ---- Manual Page -- http://www.php.net/manual/en/function.imagecreatefromjpeg.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33351 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33351&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33351&report=yes

« previous php.notes (#50891) next »