GD issues

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
mandrake
-


Joined: 25 Jun 2003
Posts: 5

PostPosted: Sat Jan 03, 2004 6:15 am    Post subject: GD issues Reply with quote

php and gd are NOT my friend. i cant seem to get GD working on my server. i have a thumbnail script which should take a picture, then generate a thumbnail from that. http://mightystuff.net/thumbnail_script is the URL of the script. when i try to run it, i either get a bunch of notices about undefined index's, or an error 200 if i set php to only display errors. i have tried turning globals variable on, no luck. i also have this problem with another script i wrote.any help would be great, as i am sick of searching, by my history, i can count over 50 threads i've looked in (via search) and had no luck with.
Back to top View user's profile Send private message
whackaxe
-


Joined: 28 Jun 2003
Posts: 90

PostPosted: Sat Jan 03, 2004 12:42 pm    Post subject: Reply with quote

are you shure you have GD turned on? look in php.ini and take off the semicolon in front of

extension=php_gd2
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Jan 03, 2004 4:54 pm    Post subject: Re: GD issues Reply with quote

mandrake,

If you get many notices, you must remove them first: read http://www.aprelium.com/forum/viewtopic.php?t=1865 .
Next, check that your script send something to the server (error 200 means that there was no output).

If you still have problems, post your script here (if it isn't too long) or send it to support@aprelium.com (do not forget to attach your php.ini file).
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
mandrake
-


Joined: 25 Jun 2003
Posts: 5

PostPosted: Sat Jan 03, 2004 7:14 pm    Post subject: Reply with quote

yes, i am positive i have GD turned on, i am not getting a dll not found error either, so no point bringing up that the dlll is not in the proper extensions directory either.

the script is at the url i posted if you want to see it, it's a little long to post in here.

aprelium, i know about how to get rid of the notices, this is when i get error 200, if i leave the notices on, i recive a bunch of notices, then it says cannot modify header info, then it has funky characters (which i assume are the picture that is ooutputed). if i turn notices off, i get error 200, and abyss just says OK on the page, along with aprelium copyright and stuff.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Jan 05, 2004 4:23 pm    Post subject: Reply with quote

mandrake,

So there is a problem with the script code (bad algorithm for example). We can review it for you if you want. Just send it to support@aprelium.com (or tell us where we can download it, please zip files before attaching them).
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
mandrake
-


Joined: 25 Jun 2003
Posts: 5

PostPosted: Mon Jan 05, 2004 10:15 pm    Post subject: Reply with quote

the script is at:

http://www.ocnetwork.ca/thumbnail.zip
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Jan 07, 2004 2:21 pm    Post subject: Reply with quote

mandrake,

The web site seems to be down now. Can you send us the zip file by mail?
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
mandrake
-


Joined: 25 Jun 2003
Posts: 5

PostPosted: Wed Jan 07, 2004 10:15 pm    Post subject: Reply with quote

yeah, sorry, my server got hacked and the isp took us offline for next 12 days....i'll email it
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Jan 09, 2004 4:13 pm    Post subject: Reply with quote

mandrake,

The script worked fine for us. The only thing we did was to create a directory called images inside htdocs and then create a subdirectory called thumbnails inside this images directory (it is used by the script to cache
the images).

To invoke the script, use the syntax
Code:
<IMG SRC="/path/to/thumb.php?file=/path/to/image.ext?SIZE=size">


where /path/to/image.ext is the relative URL of the image (or its virtual
path in the web site). This means that when you use
http://yoursite/path/to/image.ext , the browser displays the original image.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group