You are here: Re: [PHP] Cannot modify header information error........usage of header method. « PHP « IT news, forums, messages
Re: [PHP] Cannot modify header information error........usage of header method.

Posted by Mikey on 07/20/05 20:42

babu wrote:

>Hi parker,
>can you please tell me how to use java script or html redirect, i mean a sample.
>
>thanks
>
>"Chris W. Parker" <cparker@swatgear.com> wrote:
>babu
>on Wednesday, July 20, 2005 10:15 AM said:
>
>
>
>>1."Is there any other alternative to this method."
>>
>>
>
>Javascript or an html redirect.
>
>
>
>>2.I am getting the error by using this method. the error is "Cannot
>>modify header information - headers already sent by". i have seen the
>>php documentation for header method. where there is one user comment
>>about this. i have followed his steps like removing blank lines,
>>using exit method.
>>
>>
>
>You have not removed everything. Output is still being sent to the
>browser. The error message tells you which file and line is causing the
>problem. I suggest you go back to it and look closely.
>
>
>
>>But the 3rd point that is "HTML goes before any
>>PHP code ", i could not follow it , can some one please explain it.
>>
>>
>
>I don't follow it either.
>
>
>Seinfeld anyone?
>
>Chris.
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>---------------------------------
>Yahoo! Messenger NEW - crystal clear PC to PCcalling worldwide with voicemail
>
>
Javascript:

document.location = "new_url.html";

HTML:

<meta http-equiv="refresh" content="1,http://site.com/new_page.html">

HTH,

Mikey

 

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

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