What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » PHP GD image functions

PHP GD image functions
Author: Message:
ayjay
Senior Member
****

Avatar

Posts: 850
Reputation: 58
– / Male / Flag
Joined: Mar 2004
O.P. PHP GD image functions
Whenever I save a PHP file in which I'm making an image using the GD image functions, I'm getting the error that the "image contains errors". The same script's been tried by a few other people and works for them so I've come to the conclusion that it's either the way it's being saved or the way it's being uploaded :P
I've tried various editors with every possible setting you could imagine being changed 1 at a time :P and 2 different FTP clients, but still get the same error (apart from when I save it as UTF-8 - when I get a load of random crap :P)

If anyone could just tell me exactly what settings they use to save the PHP files using the GD functions and if any settings need changing in FTP, I'd be very very grateful :P

Danke :D
07-20-2006 07:45 PM
Profile PM Find Quote Report
absorbation
Elite Member
*****

Avatar

Posts: 3636
Reputation: 81
– / Male / Flag
Joined: Feb 2005
RE: PHP GD image functions
What PHP version does your server have? GD functions have a habit for varying alot between versions.
07-20-2006 07:46 PM
Profile PM Find Quote Report
ayjay
Senior Member
****

Avatar

Posts: 850
Reputation: 58
– / Male / Flag
Joined: Mar 2004
O.P. RE: PHP GD image functions
PHP 5.1.2 and GD 2.1.7, although it's been tested on the same server and works ok.
07-20-2006 07:47 PM
Profile PM Find Quote Report
absorbation
Elite Member
*****

Avatar

Posts: 3636
Reputation: 81
– / Male / Flag
Joined: Feb 2005
RE: PHP GD image functions
I also had troubles with PHP 5 on Dreamhost. I couldn't get alot of things to work as I wanted and so switched back to PHP4. Do you use Dreamhost, if so you can change versions. Also posting the source would help :).
07-20-2006 07:50 PM
Profile PM Find Quote Report
ayjay
Senior Member
****

Avatar

Posts: 850
Reputation: 58
– / Male / Flag
Joined: Mar 2004
O.P. RE: PHP GD image functions
Well, it's been tested on the EXACT same config and worked fine.
It was also tested with the exact same code and no matter what the code is, it does it anyway :P so it's not worth pasting really.
07-20-2006 07:53 PM
Profile PM Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: PHP GD image functions
posting the error would help 8-)

to see the error either remove the header('Content-type:image/png') or just view-source. :P
07-20-2006 07:53 PM
Profile PM Find Quote Report
ayjay
Senior Member
****

Avatar

Posts: 850
Reputation: 58
– / Male / Flag
Joined: Mar 2004
O.P. RE: PHP GD image functions
ffs 8-)

about a week I have been messing with this and it now decides to work.
07-20-2006 08:01 PM
Profile PM Find Quote Report
absorbation
Elite Member
*****

Avatar

Posts: 3636
Reputation: 81
– / Male / Flag
Joined: Feb 2005
RE: PHP GD image functions
You probably uploaded the wrong file, I do that from time to time (a).
07-20-2006 08:02 PM
Profile PM Find Quote Report
ayjay
Senior Member
****

Avatar

Posts: 850
Reputation: 58
– / Male / Flag
Joined: Mar 2004
O.P. RE: PHP GD image functions
quote:
Originally posted by absorbation
You probably uploaded the wrong file, I do that from time to time (a).

Nah, you wouldn't believe how many files were both on my desktop and uploaded while I was trying to get it to work :P
07-20-2006 08:04 PM
Profile PM Find Quote Report
wj
Former Admin
*****

Avatar
I aim to misbehave.

Posts: 2224
Reputation: 52
39 / – / Flag
Joined: Mar 2002
RE: PHP GD image functions
Can you post your script?
"A towel is about the most massively useful
thing an interstellar hitchhiker can have."
07-20-2006 09:12 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On