Thank you veru much for the response Houdini.
Ok, I found 2 php.ini's and I manually copied one in the apache/bin dir as u said.
A php.ini also exists in c:\windows
Now what's the problem. :
;extension=php_filepro.dll
extension=php_gd2.dll
I installed PHP 5.0. Now when I try to start Apache it says that it can't find the extension php_gd2.dll.
To be sure I copied php_gd2.dll in c:\php[root] in c:\php\ext in apache's root dir and in apache's bin dir. Also i copied it in c:\windows. Nothing at all. It says it can't find the php_gd2.dll
[it appears that php_gd2.dll, also exists in php-4.4.2-Win32/extensions, although I don't have a file like that in my system.]
What could be wrong? Where should I place the php_gd2.dll?
edit: I made also a test file . a grid.php
<?php
header("Content-type: image/png");
$im = @imagecreate(500, 200)
or die("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate($im, 255, 255, 255);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5, "A Simple Text String", $text_color);
imagepng($im);
imagedestroy($im);
?>
and I get a picture[?] with a black frame, white inside with red letters.
This confirms that gd2 is installed? in phpinfo() says that gd_library is shared.
Also look at that:
In my php.ini file says this:
; Directory in which the loadable extensions (modules) reside.
extension_dir = "./"
My extensions dir is named ext in c:\php. What should I write in the extension dir?
EDIT !!! IT WORKS..it works!!! 😃 😃
gd
GD Support enabled
GD Version bundled (2.0.23 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.5
GIF Read Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
Νow I'll try to figure out what did I do and worked so I should now in the future...
Thanks Houdini for the support.