antonykin Posted October 25, 2007 Share Posted October 25, 2007 Hi everyone, I'm a freshbie to PHP and I'd like to make a thumbnail with the help of GD library. I'm using PHP version 5.2.3. Just I download php_gd2.dll and put it into the ext folder, uncomment the extension setting in php.ini and I am sure the extension path is correct, I still come with an error below: Fatal error: Call to undefined function imagecreatefromjpeg() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\app\vendors\makeThumb.class.php on line 103 And I browse some other webs, as suggested, I try to put such a simple statement (<?php var_dump(gd_info()); ?> ) in my php for testing, it comes with such an error: Fatal error: Call to undefined function gd_info() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\app\views\pictures\edit.thtml on line 90 Can anyone help? I have walked around these for a whole day.. :'( Quote Link to comment Share on other sites More sharing options...
toplay Posted October 25, 2007 Share Posted October 25, 2007 You have to install GD library first. For windows, you'll have to modify your php.ini file, see installation instructions at: http://us3.php.net/manual/en/ref.image.php Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted October 25, 2007 Share Posted October 25, 2007 Did you restart your webserver? It's much easier to use one the prepackaged Windows webserver/PHP products like wamp or xampp since they come with all the extensions and you just have to enable the ones you want. Ken Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.