You are here: Re: php include problem « PHP Programming Language « IT news, forums, messages
Re: php include problem

Posted by Rik on 08/17/07 12:28

On Fri, 17 Aug 2007 14:22:30 +0200, Heikki <he.mantyla@gmail.com> wrote:=


> well one more thing.
> how to define what page opens first?
> whitout klickings....
> should be something like this:
>
> if ($sivu =3D=3D""){
> $sivu =3D "firstpage";
>
> how do I put it there
>
> ...because now when I go to my http://example.com/index.php
> the error.php opens next to the right link-menu.


$sivu =3D (isset($_GET['sivu']) && !empty($_GET['sivu'])) ? $_GET['sivu'=
] : =

'firstpage';
$sivut =3D array('something');
if (in_array($ivu, $sivut)) include ($sivu.'.php');

-- =

Rik Wasmus

 

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

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