Master:
# 1    GD does not work                  
exp
Online no
State
Grouping Member
Class class4
Score 298
Wealth 194
Posts 230
Login 10:43:01
someone have asked me a question regarding new server setup. He had problem of using GD, was unable to upload image in his programe, i have just reminded him to to intall php-gd. He have still not solved the problem. anyone has similar situation? thank help!
Hits: 138, Date: 2009-04-14 11:39:48
[Agree] ( 16 ) [Against] ( 16 )

# 2    thank exp                  
webfun
Online no
State
Grouping Member
Class class4
Score 156
Wealth 123
Posts 102
Login 03:47:39
i have found the problem, it is not caused by gd.
I use old variable $HTTP_POST_FILES["picture"] to get file.
It works when i change $HTTP_POST_FILES to $_FILES
Hits: 137, Date: 2009-04-15 02:36:45
[Agree] ( 16 ) [Against] ( 16 )

# 3    IE and Firefox are different when you detect a jpg file type                  
exp
Online no
State
Grouping Member
Class class4
Score 298
Wealth 194
Posts 230
Login 10:43:01
if you use $picture["type"] to detect the type of image or file. There is a problem of jpg file, in IE $picture["type"] is "image/pjpeg" , in Firefox it is "image/jpeg".

so if you write code like this:
if($picture["type"]=="image/pjpeg")
echo "this is a jpg file";

This will not print "this is a jpg file" if you use Firefox.
Hits: 126, Date: 2009-06-24 05:30:49
[Agree] ( 12 ) [Against] ( 12 )

1 - 3 [ 3]

Reply: GD does not work

*First line:


More content:


Tags:



Hint: You cannot post here before loginLogin | Register

nothing