Page 1 of 1
problems with GD!
Posted: Fri Feb 20, 2004 12:08 am
by doctorsrp
Ok guys, I've looked everywhere and there doesnt seem to be an answer... I'm trying to enable GD 1 or 2 (it doesnt matter) on PHP 4 running under Apache 1.3. I have changed the root extension dir directive to point to the correct place c:/php. I have un-commented the extension includes for 'extension=php_gd.dll' and 'extension=php_gd2.dll' in the php.ini file and i'm running out of answers.
I get the error:
Fatal error: Call to undefined function: imagecreate() in c:\work\php\test.php on line 3
Please any suggestions welcome
Thanks in advance
samson
Posted: Fri Feb 20, 2004 3:02 am
by Dr Evil
Have you restarted your server ?
Posted: Fri Feb 20, 2004 9:56 am
by liljester
have you looked at phpinfo()?
if not, write a file like this:
and save it, then open it in a browser. itll tell all the extensions you have running, and all your settings. lots of good info =)
also if you have a php startup log make sure that the extensions are loading.
ive also found that if your using windows its usually easier just to copy all the extensions you want to use to "\windows\system32" directory instead of telling php where to look for them.
Still having GD problems
Posted: Sun Feb 22, 2004 4:31 pm
by doctorsrp
thanks for the responses guys, still no luck though i'm affraid. One thing that I have noticed though is that having just installed Zend (php IDE) the php.ini file apparently is located in the c:/windows directory although it doesnt appear to be there!!!
Any ideas?
Cheers
Posted: Sun Feb 22, 2004 7:07 pm
by tsg
try adding :
header("Content-type: image/jpeg");