URL是这样的http://localhost/softwaremanageapi/v1/4/?currentversion=1下面是a标签的内容<a href='http://localhost/softwaremanageapi/v1/$line[sid]/?currentversion=$line[unigversion]'>$line[unigversion]</a>请问点击链接时的URL如上所述,请问这个页面或者函数会是什么位置?

解决方案 »

  1.   

    相当于
    http://localhost/softwaremanageapi/v1/4/index.php?currentversion=1 

    http://localhost/softwaremanageapi/v1/4/default.php?currentversion=1 是不是这个意思?
      

  2.   

    看 http://localhost/softwaremanageapi/v1/$line[sid]/?currentversion=$line[unigversion] 这个地址,如果不是使用了URL重写规则,那就是 http://localhost/softwaremanageapi/v1/$line[sid]/index.php 后面跟着了,
    但是如果使用了规则,我看有点像是 sofrwaremanageapi.php 后面跟着的了
    实际地址也许是
    http://localhost/softwaremanageapi.php/v1/$line[sid]/?currentversion=$line[unigversion]
      

  3.   

    默认文件,可能是index.php,也可能是default.php还有可能是其他
    就目前程序员的习惯与服务端的配置来说,index.php机率相当高
      

  4.   

    明白LZ意思了
    但这是很不确定的 如标题所言 可能做过链接重定向 LZ还是查下服务的配置 看看这个链接被重定向到哪个页面,一般来所都是index.php 具体是哪个文件处理这个请求,那就要看PHP代码,仅从一个链接是看不也任何结果的
      

  5.   

    在php文件里面搜索一下currentversion,应该就能找到位置,
    这个是传过来的参数,php文件是根据这个名字currentversion接受参数的
      

  6.   

    $line[ ] 是数组函数。连接中的代表的就是数组的值