View previous topic :: View next topic |
Author |
Message |
mandrake -
Joined: 25 Jun 2003 Posts: 5
|
Posted: Sat Jan 03, 2004 6:15 am Post subject: GD issues |
|
|
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 |
|
 |
whackaxe -
Joined: 28 Jun 2003 Posts: 90
|
Posted: Sat Jan 03, 2004 12:42 pm Post subject: |
|
|
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 |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sat Jan 03, 2004 4:54 pm Post subject: Re: GD issues |
|
|
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 |
|
 |
mandrake -
Joined: 25 Jun 2003 Posts: 5
|
Posted: Sat Jan 03, 2004 7:14 pm Post subject: |
|
|
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 |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Jan 05, 2004 4:23 pm Post subject: |
|
|
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 |
|
 |
mandrake -
Joined: 25 Jun 2003 Posts: 5
|
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Jan 07, 2004 2:21 pm Post subject: |
|
|
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 |
|
 |
mandrake -
Joined: 25 Jun 2003 Posts: 5
|
Posted: Wed Jan 07, 2004 10:15 pm Post subject: |
|
|
yeah, sorry, my server got hacked and the isp took us offline for next 12 days....i'll email it |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Jan 09, 2004 4:13 pm Post subject: |
|
|
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 |
|
 |
|