Posted on: 04/27/11 07:01am By: Anonymous (Begueradj)
Hi people,
I have developed a small PHP script that modifies photos. It runs well, but it displays to me when I execute it the following warning message:
Warning: Cannot modify header information - headers already sent by (output started at /home/admin/Includes/aheader.inc.php:8) in /home/admin/modifiedportsphoto.php on line 34
Re: Problem modifying images
Posted on: 04/27/11 07:09am By: Roccivic
I bet you have the following (o similar) statement somewhere in the code:
Text Formatted Code
...
header("Content-type: image/png");
...
Well, the story is that you are not allowed to execute "echo", "print", "print_r", "var_dump" or any other statements that write their output before you sent out the headers. Otherwise what kind of header will it be if it's sent half way through your content?
Re: Problem modifying images
Posted on: 05/03/11 09:07am By: Anonymous (Begueradj)
thank you for your answer but I did not code that statement at all.
I saved my pictures on a folder