I have a set up of using 2 php files for the top part of the web site and another file for bottom part.
Now, in the bottom part i wanted to generate an image with php so i have the following code:
$ad=ImageCreateFromJPEG($field); Header('Content-type: image/jpeg'); ImageJPEG($ad);where filed points to an image on the hd.
i get the following error:
Warning: Cannot modify header information - headers already sent by (output started at C:\Apache Group\Apache2\htdocs\web_business_2\header.php:44) in C:\Apache Group\Apache2\htdocs\web_business_2\lower.php on line 155I know i am sending headers in the header.php (top part of the web), but why can;t i send them from the bototm part too? note that both of these 2 parts are included in test.php which basicly uses the header and the lowert php to defined the web site and then puts its own code in between.
Any ideas how to bypass teh error?