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]
|