You are here: Re: Error when doing redirect using « All PHP « IT news, forums, messages
Re: Error when doing redirect using

Posted by Allodoxaphobia on 07/30/05 06:10

On Sat, 30 Jul 2005 02:34:16 GMT, a wrote:
> I have index.php in the root directory and I want to redirect the request to
> a subdirectory /home/index.php.
>
> Here is the content of index.php:
>
><?php
> header("Location: home/");
> ?>
>
> and the message I am getting:
>
> Warning: Cannot modify header information - headers already sent by (output
> started at C:\dev\newhome\index.php:2) in C:\dev\newhome\index.php on line 3

Probably _THE MOST_ FAQ in php ng's.

http://www.jamuk.com/php_faq_2_6

Google! Learn to fish.

 

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

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