Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
preg_match('/index.php\?(.*)/i',$_SERVER['REQUEST_URI'],$match);
echo $match[1][0];
include ("text1.php");
$_SERVER['REQUEST_URI']
<?php
$id = $_GET['id'];
if($id == "text"){
include ("stranica1.html");
}
else if($id == "texta"){
include ("stranica2.html");
}
?>
:idea:preg_match('/index.php\?(.*)/i',$_SERVER['REQUEST_URI'],$match);
echo $match[1];
<?php
$inc = false;
foreach ($_GET as $key => $val)
{
if (empty($val))
{
$inc = $key;
break;
}
}
if ($inc) if (!is_numeric($inc)) include $inc.".php"; else echo $inc;
?>
<?php
preg_match('/\?(.*)/', $_SERVER['REQUEST_URI'], $inc);
if ($inc[1]) if (!is_numeric($inc[1])) include $inc[1].".php"; else echo $inc[1];
?>