Categorized | News

Activating GD Dynamic Image Support for PHP and Apache on Windows

Posted on 08 March 2004 by Demian Turner

———————————————————————-
ACTIVATING GD DYNAMIC IMAGE SUPPORT FOR PHP AND APACHE ON WINDOWS PC

VERSIONS INFO:
OPERATING SYSTEM WINDOWS NT, 2000PRO (32)
PHP VERSION 4.3.3
APACHE VERSION 2.0.44

The \"gd\" installation process described here can probably also
apply, or be similar, to other Windows related setup versions.

——- 1)
Assuming the PHP was installed in its default directory C:\\PHP
the directory should contain a sub-directory C:\\PHP\\extensions
with all the .dll files (\"php_gd2.dll\" should be there).

——- 2)
During the PHP installation process, file \"php.ini-dist\" should be
copied to C:\\WINNT\\ directory and then renamed as \"php.ini\"

——- 3)
Edit the file C:\\WINNT\\php.ini and find following lines:

; Directory in which the loadable extensions (modules) reside.
extension_dir = \"./\"

——- 4)
Replace and uncomment the line: extension_dir = \"./\" as shown below:
(make sure to use / and NOT \\ here)

; Directory in which the loadable extensions (modules) reside.
extension_dir = \"C:/PHP/extensions\"

——- 5)
Within the file C:\\WINNT\\php.ini also find following lines:

;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed for it.
;
;extension=php_bz2.dll
;extension=php_cpdf.dll
.
.
.
.
Uncomment this line to activate dynamic image support:
extension=php_gd2.dll
.
.
.

——- 6)
Save file C:\\WINNT\\php.ini
Start APACHE

FROM NOW ON….. HAVE FUN!!! WITH PHP AND DYNAMIC IMAGES
———————————————————————-

Bookmark and Share

1 Comments For This Post

  1. unknown Says:

    i can run my gd module in my local host but when i wanna to run it in internet i recieve error
    my host in world wide web have a linux os with apache 1.3 nd php 4.3
    i know that i run it with dl(gd.so) but where i can find this file..

Leave a Reply

Categories

Books

Demian Turner's currently-reading book recommendations, reviews, favorite quotes, book clubs, book trivia, book lists

Facebook