You are here: Re: solution for redirect at page index « PHP Language « IT news, forums, messages
Re: solution for redirect at page index

Posted by BoneIdol on 10/10/07 09:20

Also note that when you use header() you are sending a HTTP header, so
it must be called before you send any content (including whitespace)

<html>
<?php
header('Location: http://www.example.com');
?>

Would generate an error saying that headers have already been sent.
The same would apply if you just made a space, tab or new line before
the <?php

 

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

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