You are here: Re: PHP file sends headers the moment it's included! « PHP Programming Language « IT news, forums, messages
Re: PHP file sends headers the moment it's included!

Posted by comp.lang.php on 12/29/05 19:24

I wasn't ever sure what happened, so I deleted the file and copied over
an older version of "classes.inc.php" on a different server and the
headers problem went away instantly.

Weird.

Phil

Oli Filth wrote:
> comp.lang.php said the following on 29/12/2005 14:20:
> > I did just that, emptied "classes.inc.php" out to the following:
> >
> > <?php if (headers_sent()) print_r("headers sent"); ?>
> >
> > output: headers sent
> >
> > It generated headers even when the file was a 1-liner without any
> > content whatsoever!
>
> Well that implies that the headers must be being sent out by your main
> script (i.e. the one that includes classes.inc.php). Try the same
> approach with that file?
>
>
> --
> Oli

 

Navigation:

[Reply to this 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

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