Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 20th, 2008, 05:04 PM
Registered User
 
Join Date: Apr 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JWinkler05
Default Help with PHP Headers

MY issue is that I created a PHP page counter that is a PNG image.

Thats two lines of the file are as follows.

    header('Content-Type: image/png');

    ImagePNG($im);

Then I am making another PHP page that I am trying to import this counter into and I keep getting the following error.

Warning: Cannot modify header information - headers already sent by (output started at -file location- in line 41.

Any ideas on how to resolve this issue. It is for a class so I am restricted to what exactly I can do, like the counter MUST be a PNG image.

Thanks~

 
Old April 21st, 2008, 12:23 PM
Registered User
 
Join Date: Apr 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JWinkler05
Default

Nevermind I found a solution...

To use the counter.php as the PNG image...

I just put it in the <img> tag on my forms page.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Hiding sub headers.... rupen Crystal Reports 6 May 14th, 2007 04:56 AM
WHat is "http headers"? gilgalbiblewheel Classic ASP Databases 1 September 14th, 2005 11:59 AM
Help With PHP Headers!! majingohan Beginning PHP 1 April 17th, 2005 04:16 AM
Headers skicrud Beginning PHP 2 October 10th, 2003 02:21 PM
PHP install: CGI app misbehaved - no headers scalene Beginning PHP 2 July 14th, 2003 12:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.