如题

解决方案 »

  1.   

    “隐藏”是什么意思?是不在浏览器地址栏显示,还是把url改写成其他形式?
    第一个不太可能
    url重写参考:http://httpd.apache.org/docs/2.0/misc/rewriteguide.html。如果是IIS装个ISAPI Rewrite,重写规则大致相同。
      

  2.   

    Apache的overwrite(重写功能)
    它的形式基本上是 http://www.example.com/showpage/1/typevalue/如果不重写的话,这个页面也许是要这样显示的 http://www.example.com/showpage.php?id=1&type=typevalue具体的重写方法你可能搜一下,网上多的
      

  3.   

    可以用框架试试,如zend framework或thinkphp
      

  4.   

    就想这个页面上面的路径似的..
    http://topic.csdn.net/u/20090610/09/58e6debb-305b-4127-ba48-e18dd0d16aa3.html?29687
      

  5.   

    <?php
    $parameters_string=str_replace($_SERVER['SCRIPT_NAME'],"",$_SERVER['REQUEST_URI']);
    $parameters_array=split('/',$parameters_string);
    $id=$_GET['id'];
    mysql_connect('localhost','root','123');
    mysql_select_db('shopshow');
    $sql="select * from shop_info where id='$parameters_array[2]'";
    mysql_query("set names utf8");
    $result=mysql_query($sql);
    while($row=mysql_fetch_array($result)){
    print_r($row);
    }
    ?>
    要注意的是$parameters_string=str_replace($_SERVER['SCRIPT_NAME'],"",$_SERVER['REQUEST_URI']);
    $parameters_array=split('/',$parameters_string);
    原来的地址是http://127.0.0.1/wt/2.php?id=1
    现在就可以用http://127.0.0.1/wt/2.php/id/1来调用了