RE: Re: PHP Header issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Ashley Sheridan
> On Fri, 2009-09-18 at 19:01 +0200, Ralph Deffke wrote:
>> sorry man, but no blancs etc. means NOTHING should be send before the
header
>> 
>> it should look like this:
>> <?php 
>> 
>> header("Location: advertise2.php"); 
>> 
>> ?>
>> 
>> here u can do ur html
>> 
>> 
>> 
>> not one! single char incl. space should be outputted before the
> header e.g. before the php open tag.
>> 
> 
> I think this sort of issue arises particularly because of the
> misconception that PHP is embedded inside HTML pages. Once a person
has
> that idea in their head, they will start to work with an HTML template
> and add PHP as necessary. While that can work, in cases such as this,
> it's best to remember that HTML (and XML or other languages, etc) is
> inserted into PHP scripts.

After using Perl to generate HTML, that is exactly what it looks like. I
always believed that was the way PHP was designed, so the PHP scripts
are embedded inside the HTML. It is a much more logical construct than
trying to use Perl, or C or ...

Bob McConnell

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux