想删掉一个函数,但是又不知道这个函数在哪用过,想找出来修改怎么找呢?PHP

解决方案 »

  1.   

    用Dreamweaver批量搜索该函数名站点所在文件夹
      

  2.   

    那不是很简单吗?
    删掉或注释掉函数的定义,然后运行程序。php 会告诉你每一个使用这个函数的地方:undefine function xxxx
      

  3.   

    吧include 的一个一个注释掉 试试就知道咯。
      

  4.   

    可以借助zend编辑工具,按住ctrl+点击使用的函数或者变量,他会自定跳转到其定义位置
      

  5.   

    read -p "Enter string you want find :" findstringecho "The following files include the key word:$findstring"echo "--------------------------------------------------------------"find -name  "*"  | awk 'BEGIN {FS=" "} {$2=findstring" "; system("grep " $2 "\""$1"\"" " -l") }' findstring="$findstring"echo "--------------------------------------------------------------"echo "search over..."
      

  6.   

    直接看这篇文章吧
    Editplus 文件中批量搜索字符串的技巧