不是php的函数,可能是自己定义的函数,看一下其类定义,应该找得到。

解决方案 »

  1.   

    这个是其他人写的一个mysql的类
      

  2.   

    那么下面这段代码的最后那个是什么呢
    <?php
    /*
    +--------------------------------------------------------------------------
    |   Invision Power Board v2.1.7
    |   =============================================
    |   by Matthew Mecham
    |   (c) 2001 - 2005 Invision Power Services, Inc.
    |   http://www.invisionpower.com
    |   =============================================
    |   Web: http://www.invisionboard.com
    |   Time: Thu, 13 Jul 2006 09:13:34 GMT
    |   Licence Info: http://www.invisionboard.com/?license
    +---------------------------------------------------------------------------
    |   > $Date: 2005-10-24 22:17:00 +0100 (Mon, 24 Oct 2005) $
    |   > $Revision: 64 $
    |   > $Author: bfarber $
    +---------------------------------------------------------------------------
    |
    |   > Handler for BBCode parsing
    |   > Module written by Matt Mecham
    |   > Date started: Wednesday 9th March 2005 11:03
    +--------------------------------------------------------------------------
    */class parse_bbcode
    {
    # Global
    var $ipsclass;
    var $bbclass;

    # Already loaded classes?
    var $classes_loaded = 0;

    # Update caches if not present?
    var $allow_update_caches = 0;
    var $pre_db_parse_method = 'new';

    # Permissions
    var $parse_smilies   = 0;
    var $parse_html      = 0;
    var $parse_bbcode    = 1;
    var $strip_quotes    = 1;
    var $parse_n12br     = 1;
    var $bypass_badwords = 0;

    # Error
    var $error;

        /*-------------------------------------------------------------------------*/
        // Constructor
        /*-------------------------------------------------------------------------*/
        
        function parse_bbcode()
        {
         //-----------------------------------------
         // Anything to init?
         //-----------------------------------------
        }
        
        /*-------------------------------------------------------------------------*/
        // This function is called before inserting the post text into the DB
        // Depending on which method we're using, it will either check for errors
        // or parse the code into legacy (IPB 2.0<) format.
        /*-------------------------------------------------------------------------*/
        
        function pre_db_parse( $text )
        {
         //-----------------------------------------
         // INIT
         //-----------------------------------------
        
         $class = "";
        
         //-----------------------------------------
         // Check the DB cache
         //-----------------------------------------
        
         $this->check_caches();这个check_caches呢,打开这个页面的源代码,前面没有提到这个啊,是什么呢
      

  3.   

    check_caches 是类中的方法 不是php本身的!
    你实在找不到的话用Dreamweaver在所有的文件中查找check_caches
    你会找到 
    function check_caches(
    这样的方法
      

  4.   

    哦,是ipb论坛的代码啊。肯定是人家自己封装了一个对mysql的操作类,为了方便和程序的整体架构。
      

  5.   

    你用zend建立一个项目,把项目路径指向整个bbs的文件夹。然后复制“check_caches”这个字符串,在左边的项目根文件夹上点右键,选择“在文件中查找”,查一下这个字符串。看看它的出现位置,出现了几次,都在哪里。这个方法不一定就是在本页面定义的。看看代码里面都include或require了什么文件。去那些文件里面找找。也有可能当前页面的类是extends别的类的。
      

  6.   

    zend framework是开发框架。我说的是Zend Development Environment那个IDE。