It's OK now, I have found the problem. My script used the include()
statement to bring in my database username and password, but somehow when
this include file was uploaded to my host's server an extra blank line
appeared at the end. This blank line was being written to the output stream
before anything else and causing my "header: ('Content-type: image/png');"
to be ignored.
This same include file on my local PC did not have this extra blank line, so
it did not cause a problem.
Tony Marston
http://www.tonymarston.net/
"Shawn Wilson" <sh***@glassgiant.com> wrote in message
news:3F***************@glassgiant.com...
Tony Marston wrote:
I have just moved my website to a new hosting provider as the previous
one went belly-up. Everything is now fine except for one thing - my counter
script which generates a PNG image is sending out garbled text instead
of an image.
This script has been working for months on my desktop and my laptop, and
worked at my previous web host, but is failing with my new hosting
company.
PHP version 4.3.3
GD library is reported as 2.0.15 in PHPINFO()
Any ideas out there?
You might want to post some code snippets. Does PNG Support = "enabled"
in phpinfo()?
Try commenting out the header("Content-type... line and put
error_reporting(E_ALL); at the top of your script. That should hopefully
give you an error message.
Regards,
Shawn
--
Shawn Wilson
sh***@glassgiant.com
http://www.glassgiant.com