Reply to Re: Warning: Cannot modify header information - headers already sent my (output started at ...

Your name:

Reply:


Posted by rush on 09/29/28 11:33

"Ian Rutgers" <irutgers@otima.ca> wrote in message
news:kdpjf.148$Eq5.12@pd7tw1no...
> I am creating a page that will display thumbnails of images in a folder.
I
> can read the images in the folder but when I try to use the <?
> header("Content-type: image/jpeg");?> ... I get the error message as
> detailed in the subject line.
>
> From what I've researched, it has to do with whitespace on that line ...
but
> I don't see any ... help!!!

you must not emit a single byte of html prior to header function, usually it
is a white space but it can be anything thet get to the output. Finding it
is a good excercise, and it known to strenghten character ;)

Alternatively, you could use output buffering functions to make sure nothing
goes out untill you want it to.

rush
--
http://www.templatetamer.com/
http://www.folderscavenger.com/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация