[PHP] Help PHP 4.2: No more error messages

2002-04-23 Thread Mark W. Humphries

I am running PHP 4.2 and Apache 1.3.23 on Win2k.
I am generating png files. Before upgrading to PHP 4.2 whenever I had a bug
in a png generating script I would get back an error message, now I only get
back a blank page. I have error reporting set to E_ALL.

Thanks,
 Mark


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




RE: [PHP] Re: Help PHP 4.2: No more error messages

2002-04-23 Thread Mark W. Humphries

CC,

 Thanks! That was what I needed.

Cheers,
 Mark

-Original Message-
From: CC Zona [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 2:39 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Help PHP 4.2: No more error messages


In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Mark W. Humphries) wrote:

> I am running PHP 4.2 and Apache 1.3.23 on Win2k.
> I am generating png files. Before upgrading to PHP 4.2 whenever I had a
bug
> in a png generating script I would get back an error message, now I only
get
> back a blank page. I have error reporting set to E_ALL.

Check the value of display_errors too.

--
CC

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



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




[PHP] Strange warning message GD2 & php 4.1.2

2002-04-07 Thread Mark W. Humphries

Perhaps someone can kindly help me with the following problem.

The following snippet runs perfectly when I use php_gd.dll but generates a
garbled warning message when I switch the extension to php_gd2.dll

"Warning: @Ép in c:\program files\apache group\apache\htdocs\test.php on
line 10"
(line 10 being the imageTTFText call)


  $image = imagecreate(500, 500);

  define( 'BEIGE', imagecolorallocate($image, 245, 245, 220) ); #
Automaticaly 1st is Background color
  define( 'BLACK', imagecolorallocate($image,   0,   0,   0) );

  imageTTFText($image, 32, 0, 100, 100, BLACK, 'c:/WINNT/Fonts/times.ttf',
'HELLO');

  header('Content-type: image/png');
  imagepng($image);

Cheers,
Mark


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




[PHP] Help, anyone else using GD2 & php 4.1.2 ?

2002-04-09 Thread Mark W. Humphries

Any help with this problem would be greatly appreciated.

I'm running PHP 4.1.2 on Win 2000 and Apache.

The following snippet runs perfectly when I use php_gd.dll but generates a
garbled warning message when I switch the extension to php_gd2.dll. The only
change I make to my setup is the corresponging extension directive in the
php.ini file.
I get the following error message, similar ones appear for any of the
trutype related functions I call in the rest of my code.

"Warning: @Ép in c:\program files\apache group\apache\htdocs\test.php on
line 10"
(line 10 being the imageTTFText call in the following code:

  $image = imagecreate(500, 500);

  define( 'BEIGE', imagecolorallocate($image, 245, 245, 220) ); # Background
color
  define( 'BLACK', imagecolorallocate($image,   0,   0,   0) );

  imageTTFText($image, 32, 0, 100, 100, BLACK,
'c:/WINNT/Fonts/times.ttf','HELLO');

  header('Content-type: image/png');
  imagepng($image);

Cheers,
Mark


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