By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,932 Members | 1,462 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,932 IT Pros & Developers. It's quick & easy.

Image function?

P: n/a
wjz
Hi all,

Im using PHP 4.4.2 on Windows with apache. Can anyone tell how to use
funtions to create and manipulate GIF and JPEG images? Is this
functionallity available in PHP and do i need to change setting or do i
need to install aditional dll (where can i get them) and do i need to
change the php.ini?

Thanx!
WJ

May 6 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a

wj*@wirehub.nl wrote:
Hi all,

Im using PHP 4.4.2 on Windows with apache. Can anyone tell how to use
funtions to create and manipulate GIF and JPEG images? Is this
functionallity available in PHP and do i need to change setting or do i
need to install aditional dll (where can i get them) and do i need to
change the php.ini?

Thanx!
WJ


Use the gd library

http://uk.php.net/gd

The manual says its bundled with php 4.4.2 on windows, don't think you
will need to change anything.

Seeya

Tim

May 6 '06 #2

P: n/a
Rik
wj*@wirehub.nl wrote:
Hi all,

Im using PHP 4.4.2 on Windows with apache. Can anyone tell how to use
funtions to create and manipulate GIF and JPEG images? Is this
functionallity available in PHP and do i need to change setting or do
i need to install aditional dll (where can i get them) and do i need
to change the php.ini?


GD, normally already present, activate by removing ";" before
extension=php_gd2.dll in your php.ini file.
http://www.php.net/manual/en/ref.image.php

Grtz,
--
Rik Wasmus
May 6 '06 #3

P: n/a
When i look in C;/php/dlls i see the file gds32.dll I suppose that this
is the image library? In which file do i have to remove the ;? I only
see php.ini-dist and php.ini-recommended, no php.ini...

Thanx!,
WJ
wj*@wirehub.nl wrote:
Hi all,

Im using PHP 4.4.2 on Windows with apache. Can anyone tell how to use
funtions to create and manipulate GIF and JPEG images? Is this
functionallity available in PHP and do i need to change setting or do
i need to install aditional dll (where can i get them) and do i need
to change the php.ini?


GD, normally already present, activate by removing ";" before
extension=php_gd2.dll in your php.ini file.
http://www.php.net/manual/en/ref.image.php

Grtz,

May 6 '06 #4

P: n/a
WJ Zeeuwen wrote:
When i look in C;/php/dlls i see the file gds32.dll I suppose that this
is the image library? In which file do i have to remove the ;? I only
see php.ini-dist and php.ini-recommended, no php.ini...

Thanx!,
WJ


The image library should be in c:\php\extensions

If you have php up and running on your computer then make a script that
calls phpinfo(), save the script in you web space, open the script in
your browser and the location of php.ini will be shown 5/6 rows from
the top.

If php.ini doesnt exist yet then you need copy+amend php.ini-dist or
recommended then rename as php.ini, save the new version in
c:\windows\system32 unless you have added c:\php to the PATH
environment variable

Seeya

Tim

May 6 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.