Page 1 of 1

[SOLVED] imagecreatefromjpeg()

Posted: Thu Sep 16, 2004 6:46 pm
by dethron
how can i use this function in my codes.
i have php4 from phptriad buddle..
which packet should i install?

Posted: Thu Sep 16, 2004 6:50 pm
by feyd
you'd need [php_man]GD[/php_man] running..

Posted: Thu Sep 16, 2004 6:56 pm
by dethron
I downloaded the library, and now trying to install it.
I'm confused with some step of the installation progress?

" Type `make' to compile the package."

I'm on my windows now :( what does it mean?

Posted: Thu Sep 16, 2004 6:57 pm
by feyd
you don't build anything for windows..

just turn the extension on inside your php.ini.. that's if your installer package installed it..

Posted: Thu Sep 16, 2004 7:06 pm
by dethron
can you describe how to do?

shoud I enable the followings?
;extension=php_bz2.dll
;extension=php_ctype.dll
;extension=php_cpdf.dll
;extension=php_curl.dll
;extension=php_cybercash.dll
;extension=php_db.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_dbx.dll
;extension=php_domxml.dll
;extension=php_dotnet.dll
;extension=php_exif.dll
;extension=php_fbsql.dll
;extension=php_fdf.dll
;extension=php_filepro.dll
;extension=php_gd.dll
;extension=php_gettext.dll
;extension=php_hyperwave.dll
;extension=php_iconv.dll
;extension=php_ifx.dll
;extension=php_iisfunc.dll
;extension=php_imap.dll
;extension=php_ingres.dll
;extension=php_interbase.dll
;extension=php_java.dll
;extension=php_ldap.dll
;extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_ming.dll
;extension=php_mssql.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pdf.dll


can you describe the whole process?

Posted: Thu Sep 16, 2004 7:11 pm
by feyd
remove the semicolon on the lines you want to enable the extensions. Make sure your extension directory is set correctly.. and try to restart apache/php.. if it fails, you are missing some library.. read the docs for the extensions to see which libraries they need.

Posted: Thu Sep 16, 2004 7:40 pm
by dethron
i couldn't find php_gd2.dll in packet?
am i doing something wrong?
it should not be so hard i guess.

Posted: Thu Sep 16, 2004 7:45 pm
by feyd
well.. you only have php_gd.dll .. so you might want to update to a newer php...

Posted: Thu Sep 16, 2004 7:51 pm
by dethron
hmm, now we are coming somewhere,
ok. thnx for advice.
i think i can handle the rest ;)

Posted: Thu Sep 16, 2004 8:14 pm
by dethron
i upgraded to php 4.3.8, and enabled required extentions.
and i got the following message :(

Warning
Unknown(); gd: Unable to initialize module
Module compiled with module API=20010901, debug=0, thread-safety=1
PHP compiled with module API=20020429, debug=0, thread-safety=1
These options need to match.

As I understand the problem, i can upgrade some part of it, while i couldn't the rest, :(

Posted: Thu Sep 16, 2004 8:16 pm
by timvw
now move stuff from %php%/dlls to %win%and reload server :)

btw, that is mentionned in the install.txt

Posted: Thu Sep 16, 2004 8:26 pm
by dethron
:( i lost control on this.
cannot load php4apache.dll module not found (i checked twice, the dll is there)

Posted: Thu Sep 16, 2004 8:38 pm
by feyd
is where?

Posted: Thu Sep 16, 2004 8:51 pm
by dethron
Syntax error on line 194 of c:/apache/conf/httpd.conf:
Cannot load c:/php/sapi/....

arrrrggghhhhhhh :(
what is c:/php/sapi/....

my php is in c:/apache/php

:) solved thanks all ;)