You are here: Re: How to open another page by PHP « All PHP « IT news, forums, messages
Re: How to open another page by PHP

Posted by jukka on 02/02/06 13:35

Stefan Mueller wrote:
> What I need is a statement which tells PHP not to execute the code of the
> actual PHP script if '$_SESSION['my_session_variableberechtigung']' is not
> set but instead to open 'login.php' and execute that file.
>
> Stefan

if (!$_SESSION['my_session_variableberechtigung']) //not set
{
include('login.php');
}
else
{
whatever
}

or, correct me if I'm wrong, you could do exit; after the include
instead of the else statement.

 

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

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