RaaapuLis Posted February 2, 2008 Report Share Posted February 2, 2008 Man tāds jautājums , kā uztaisīt webam lapas lai viņas atveras nevis piem., /index.php, /ziedot.php , bet gan lai takaa wos`aa piem /?q=index , /?q=ziedot. Gignā mēģināju pameklēt bet neatradu. lūdzu pasakiet lienkus, vai arii iedodiet linku gign forumaa jaa ir jau taada teema. Ja zinat arii savaadaak tad pasakiet piem., /?lapa=lapas_nosaukums Paldies jau ieprieks. p.s un googlee ko vareeju to izmekleejos, neatradu. Dodiet arii googles linkus. Tizlus komantarus nerakstiet, tie kas zin tie arii raksta Link to comment Share on other sites More sharing options...
*jancis38* Posted February 2, 2008 Report Share Posted February 2, 2008 (edited) $a = array('bildes' => 'bildes.php', 'sakums' => 'sakums.php', utt); if (!empty($a[$_GET['do']])) { require($a[$_GET['do']]); } else { require('sakums.php'); } EDIT: Iespējams šitas arī var noderēt. Edited February 2, 2008 by *jancis38* Link to comment Share on other sites More sharing options...
RaaapuLis Posted February 2, 2008 Author Report Share Posted February 2, 2008 (edited) A kas ar shito php kodu jadara? kur jaliek? ka pielietot? Edited February 2, 2008 by RaaapuLis Link to comment Share on other sites More sharing options...
overmind Posted February 2, 2008 Report Share Posted February 2, 2008 <? if(isset ($_GET['p'])) { $page = 'pages/'.$_GET['p'].'.php'; if(file_exists($page)) { include($page); } else { include('pages/news.php'); } } else { include('pages/news.php'); } ?> Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now