You are here: Re: Refresh Problems « All PHP « IT news, forums, messages
Re: Refresh Problems

Posted by John on 11/15/05 15:10

On 15 Nov 2005 04:14:31 -0800, "Oli Filth" <catch@olifilth.co.uk>
wrote:

>John wrote:
>> On 15 Nov 2005 02:44:40 -0800, "Oli Filth" <catch@olifilth.co.uk>
>> wrote:

<snip>

>" Remember that header() must be called before any actual output is
>sent, either by normal HTML tags, blank lines in a file, or from PHP.
>It is a very common error to read code with include(), or require(),
>functions, or another file access function, and have spaces or empty
>lines that are output before header() is called. The same problem
>exists when using a single PHP/HTML file."
>
>Flying by night, i.e. just typing in functions and hoping they work
>without reading about how to use them, is generally not the recommended
>way of programming.

I have read that section a number of times and still don't understand
it.

OK so I use this and get the error message - headers already sent.

<?php header("Location: $page"); ?>

So what do I do now?

--
John

 

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

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