<a href=./show_file.php?currentdir=$currentdir&filename=$item&type=$extname>$item </a> 
show_file.php是请求链接的目标地址
用?来表示后面的请求的参数,是以GET方式传过去的.
在PHP中,"currentdir=$currentdir&filename=$item&type=$extname"这个顺序一般可以随意打破的,除非在接收的show_file.php有特殊规定.

解决方案 »

  1.   

    你说的那些只是传递参数的一种方式.你print_r($_GET)那里面是一个数组.
      

  2.   

    ./show_file.php是相对路径,./表示当前目录,就是此页面和show_file.php在同一目录下,../表示上一级目录。代码里这段就是把URL传过去的参数值读出来赋给变量$currentdir=$_GET["currentdir"];
    $filename=$_GET["filename"];
    $type=$_GET["type"];