note 33351 deleted from function.imagecreatefromjpeg by cmb

From: Date: Sun, 11 Dec 2016 11:15:51 +0000
Subject: note 33351 deleted from function.imagecreatefromjpeg by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-208504@lists.php.net to get a copy of this message
Note Submitter: lordneon at deskmod dot com ---- 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 :)

« previous php.notes (#208504) next »