this '/' method looks kinda neet, but some vars get messed, ie $PHP_SELF,
just be carefull using it.
<?php
$INC = explode('/', $REQUEST_URI);
unset($INC[0]);
unset($INC[1]);
$INC = implode('/', $INC);
include_once($INC);
?>
Chris Lee
[EMAIL PROTECTED]
"O�k���rz���k�" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Sveiki, php-general,
>
> I have a file index.php . I include file menu.php in index.php ( I
> write include('menu.php'); in index.php ) . I want to do like this:
>
> index.php/menu.php . That means, that index.php has to include menu.php
>
> index.php/second.php . That means, that index.php has to include
> second.php .
>
> I think that you already know what I'm talkking about. So how could
> I do it?
>
> Thank you....
>
>
>
> ____________________________
> 2001.11.02, penktadienis
> Marius Pertrav�ius
> iCQ: #125733984
> [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]