Need help with include<

liunx

Guest
OK, i've got something like this:


switch($show)
{
case "news": include("news/index.php"); break;
case "newsarchive": include("news/index.php?action=list"); break;
default: include("news/index.php"); break;
}


this works fine with the news/index.php part, but if i try to include the php with the $action trigger it doesn't work at all... i think the server takes "index.php?action=list" as a filename... and of course there's no file like that available...

... so is it impossible to include a php with a trigger, or is there some solution?you have to put the full url starting with http://


(you didn't check php.net/include)thx, i'll do that...
... and no i didn't check... didn't even know it was there :eek:
... will check that site first from now on (looks good)
 
Back
Top