Reply to Re: [PHP 5 XP IE6]header("test"); does not display

Your name:

Reply:


Posted by Justin Koivisto on 03/23/06 18:59

Treefrog wrote:
>
> As a rough
> rule, you wont need to use the header() function until you're fairly
> advanced with PHP, with possibly the exception of header("Location:
> anotherpage.htm"); that which redirects the browser to anotherpage.

When you use the location header, it should be a full URL, not a
relative URI. Also, you should follow the location header with a call to
exit (or die).

header('Location: http://example.com/anotherpage.html');
exit;

--
Justin Koivisto, ZCE - justin@koivi.com
http://koivi.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

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