Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Wednesday, May 22 2013 @ 09:16 PM EDT


 Forum Index > Support > General Geeklog Support New Topic Post Reply
 Problem modifying images
   
Anonymous: Begueradj
 04/27/11 07:01AM (Read 689 times)  



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
Roccivic
 04/27/11 07:09AM  
MMMMM
Moderator

Status: offline


Registered: 05/19/10
Posts: 136
I bet you have the following (o similar) statement somewhere in the code:

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

 
Profile Email
 Quote
Anonymous: Begueradj
 05/03/11 09:07AM  



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

begueradj, Bejaia

 
 Quote
Content generated in: 0.75 seconds
New Topic Post Reply

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