You are here: Re: Redirection script « All PHP « IT news, forums, messages
Re: Redirection script

Posted by Rik on 10/19/05 00:09

Raj wrote:
> I have a website that redirects users to the "intro_page" via the
> start page if they enter the website anywhere except the start page.
> ....
> Here's the script. It doesn't go to intro_page.php. It just sits on
> start.php.
> ....
> include("./general_scripts_etc/header1.php");

What's in this include?
www.php.net: "Remember that header() must be called before any actual output
is sent, either by normal HTML tags, blank lines in a file, or from PHP. It
is a very common error to read code with include(), or require(), functions,
or another file access function, and have spaces or empty lines that are
output before header() is called. The same problem exists when using a
single PHP/HTML file"

Further: without the redirect, does the mysql_query work?
Try to just echo "0" or "1", does this work?

Grtz,

Rik

 

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

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