Forget aboout compiling, use binaries instead.
The following worked for my system (Win2000 and Apache3.1.22):
1) Download Windows binaries php-4.1.1-installer.exe and php-4.1.1-Win32.zip
from www.php.net
(The version 4.1.1 was yesterday replaced by 4.1.2, but I hope the new
one will work too. Else contact me for the older one)
2) Don't try to install php from the zip but use the exe to install php
without extensions. This will put all standard dlls to the right place and
do some registry entries.
3) Unpack the zip and copy the extensions folder to your php install
directory (e.g. c:\webserver\php)
There a precompiled php_gd.dll is contained with support for jpeg, png,
freetype2, ttf
4) Edit php.ini which resides in %Windir%
Locate the paths and directories section and make entries similar to below:
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
include_path=; UNIX: "/path1:/path2" Windows: "\path1;\path2"
doc_root=; the root of the php pages, used only if nonempty
user_dir=; the directory under which php opens the script using /~username
; directory in which the loadable extensions (modules) reside
extension_dir=c:\webserver\php\EXTENSIONS
extension=php_gd.dll
extension=php_zlib.dll
enable_dl=On
I am not sure about dependencies, but it may be that for png support zlib is
necessary (at least when compiling it in unix), so it may be good to enable
php_zlib.dll too.
5) Configurate and restart your webserver
eg. for apache in httpd.conf:
# Path to PHP.EXE directory -- change ScriptAlias to suit your config.
# Attention: Paths are unix style with slash not backslash, even on
Windows-PCs
ScriptAlias /php4/ "c:/webserver/php"
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php
AddType application/x-httpd-php4 .php3
DirectoryIndex index.html default.htm index.php index.php3
6) Check installation by a script containing
<?php phpinfo(); ?>
The output should contain a section:
gd
GD Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage with TTF library
JPG Support enabled
PNG Support enabled
WBMP Support enabled
I hope this helps.
J�rgen Schoch
Marcel Besancon wrote:
> Hi everybody,
>
> i'm want to use windows for developing PHP-Scripts. Now here's my
> problem. Is there any way to use the gd-library under windows? Or where do I
> put the gd.dll. I tried many directories but none of them worked (Though
> some of them have been written to the php.ini as include-directory !!!)
>
> I hope this question isn't to stupid for all of you. Any hint can be useful
>
> THX
>
> Marcel
>
> --
> registered Fli4l-User #00000388
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php