Re: Re[2]: [PHP] Problems creating images

2006-04-13 Thread Richard Lynch
On Thu, April 6, 2006 5:24 pm, Tom Rogers wrote:
 put

 error_reporting( E_ALL);

 at the top of the script and see if any error messages show up.
 The fact that the mime type is text seems to indicate some output has
 gone to
 the client before your header call. That could be any white space
 outside of
 ?php..? and could be in an include file or prepend file as well.

Actually, if it's an auto_prepend file, you'll need to change the
reporting level in .htaccess, or it's too late by the time your script
starts executing, no?

php_value error_reporting 2047

Note: I don't think E_ALL is kosher in .htaccess, so I used the value
of E_ALL my PHP reports from:

php -r  'echo E_ALL, \n;'

I think E_ALL changed value at some point, though...

Maybe you can have your client put up a ?php echo E_ALL;? page.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re[2]: [PHP] Problems creating images

2006-04-06 Thread Tom Rogers
Hi,

Friday, April 7, 2006, 6:20:41 AM, you wrote:
AB Tom Rogers wrote:


AB There isn't. I've got the suspicion it's got to do with the UTF-8 
AB character encoding because of the characters '', I've seen this 
AB before with HTML pages. Because of this I asked the person who's having 
AB the problems to upload and test three different files versions of the 
AB php file:

AB - ANSI
AB - UTF-8
AB - ANSI UTF-8 without BOM

AB None had any effect what so ever. What else can I try?

AB Philip Hallstrom pointed out that the returning header is set to 
AB 'Content-Type: text/html; charset=iso-8859-1' instead of 'Content-type: 
AB image/jpeg'. What could be the cause of this?

AB Yours,

AB Age


put

error_reporting( E_ALL);

at the top of the script and see if any error messages show up.
The fact that the mime type is text seems to indicate some output has gone to
the client before your header call. That could be any white space outside of
?php..? and could be in an include file or prepend file as well.
-- 
regards,
Tom

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php