PDA

View Full Version : php gdimage + apache on win


Radgam
05-27-2003, 12:09 PM
I've got apache, mysql, php and perl installed on winXP mainly so i mess around with stuff without the hassle of constant uploading and reuploading of files :)

Apache version 1.3.26 and php version 4.2.3 installed.

I've updated the config file but it didn't seem to make a difference. I?ve also copied the php_gd2.dll file into the c:\windows\system32 folder.

Config File reads:
extension_dir = "Z:\WebDev\php\4.2.3\extensions"
...other stuff here...
;extension=php_gd.dll
extension=php_gd2.dll

strangely if i do, for example

extension_dir = "Z:\WebDev\php\4.2.3\extensions"
...other stuff here...
extension=php_gd.dll
extension=php_gd2.dll

apache gives me loads of duplicate function name errors so that would suggest to me the extensions are being included, but it just doesn't want to work. Not really sure on this one.

Any ideas?

And i'm using the first code i pasted from my php config file so I?m not including both versions of gdimage; it was just one of those curiosity killed Radgam tests ;)

[edit]
And i'm testing this with vb2.3.0 and the image verification system.

[edit2]
After i took out all the checks for which version of gdimage i'm using (ie every bit where it checks $gdversion) it worked so ... I guess $gdversion isn't being defined for some reason.

filburt1
05-27-2003, 01:30 PM
Only include php_gd2.dll and restart Apache.

Radgam
05-27-2003, 01:50 PM
have done :/
Also tried it with php_gd and restarted and it doesn't seem to recognise either.

Just a quick question though, is $gdversion a variable usually defined by php or is it a varible vb should be checking and defining at some point?

Xenon
05-27-2003, 02:07 PM
$gdversion can be set in vboptions in your acp

Radgam
05-27-2003, 02:23 PM
Thanks, problems sorted :)
(yes, i must be stupid :p )

filburt1
05-27-2003, 02:25 PM
Not at all (well, maybe vB-wise :p j/k), web servers can be a real PITA to configure. Just wait until you want to learn JSP and have to work with Tomcat, ugh...

Radgam
05-27-2003, 02:28 PM
Servers always trip me up with so many config files!
lucky, i don't think i want to learn JSP :D I've still got to get good at PHP first either way ;)

Xenon
05-27-2003, 02:39 PM
Today at 17:25 filburt1 said this in Post #6 (https://vborg.vbsupport.ru/showthread.php?postid=400593#post400593)
Not at all (well, maybe vB-wise :p j/k), web servers can be a real PITA to configure. Just wait until you want to learn JSP and have to work with Tomcat, ugh...


totally agree with our turtle here, i have to work with that for university..... :(