Reply to Re: Include and Header(Location: ) not working together

Your name:

Reply:


Posted by Alvaro G. Vicario on 08/27/06 09:03

*** geshan escribió/wrote (26 Aug 2006 22:36:45 -0700):
> In php5 I am not able to use include funciton and header("location:"""
> together please help.

In what sense aren't you able? I mean, you just type the code as usual,
don't you? What prevents you from doing so?

I'll make an exercise of fortune telling. You've upgraded to PHP 5 and you
are using the default settings in php.ini, where display_errors is
disabled. Enable it this way:

display_errors = On
error_reporting = E_ALL

When you do so, the PHP interpreter will say you cannot insert a header
because output already started. You cannot print anything into the page
before using the header() function. That includes blank lines outside the
<?php ?> tags.


--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.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

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