Begueradj

Anonymous
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

Status: offline

Roccivic

Forum User
Moderator
Registered: 05/19/10
Posts: 136
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?

Begueradj

Anonymous
thank you for your answer but I did not code that statement at all.
I saved my pictures on a folder

begueradj, Bejaia