Tuesday 4 February 2014

[dcphp-dev] Re: PHP GD output

As a hack (USE AS LAST RESORT) I would suggest that you can suppress the output using an output buffer: http://www.php.net/manual/en/function.ob-start.php

<?php
ob_start(); // start the buffer

// Nasty stuff here (it won't output anything)
 
ob_end_clean(); // discard the buffer
?>



On Tuesday, February 4, 2014 3:03:48 AM UTC-5, Scott Castillo wrote:
I am creating an image in the middle of a process.  The process uses the imagestring() function a lot.  Although everything works, I am getting junk output prior to redirecting back to the page to pick up the image.  The process works but I would like the junk output not to appear in the interim.  The output has symbols such as the following:  F�q ����<� "p� Կ�.

Would like to suppress the noted symbols.

Any help would be appreciated.

--
You received this message because you are subscribed to the Google
Group: "Washington, DC PHP Developers Group" - http://www.dcphp.net
To post, send email to washington-dcphp-group@googlegroups.com
To unsubscribe, send email to washington-dcphp-group+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/washington-dcphp-group?hl=en
---
You received this message because you are subscribed to the Google Groups "Washington, DC PHP Developers Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to washington-dcphp-group+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 comments:

Post a Comment