Welcome to Geeklog, Anonymous Thursday, July 25 2024 @ 06:39 am EDT

Geeklog Forums

Problem modifying images


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


Forum User
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?


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

begueradj, Bejaia

All times are EDT. The time is now 06:39 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content