Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 06:22 pm EST

Geeklog Forums

Problem modifying images


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
 Quote

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?
 Quote

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
 Quote

All times are EST. The time is now 06:22 pm.

  • 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