Reply to Error when doing redirect using

Your name:

Reply:


Posted by a on 07/30/05 05:34

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

[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

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