have you require or include the function file?
Please show the codes.

解决方案 »

  1.   

    public function PHProxy__construct ($config, $flags = 'previous')
        {
            $this->version    = '0.4';
            $this->http_host  = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : (isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : 'localhost');
            $this->script_url = 'http' 
                              . (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 's' : '')
                              . '://'
                              . $this->http_host
                              . $_SERVER['PHP_SELF'];
            $this->request_method = $_SERVER['REQUEST_METHOD'];
            $this->config = $config;
            $this->set_flags($flags);        if ($this->flags['rotate13'])
            {
                function encode_url($url)
                {
                    return rawurlencode(str_rot13($url));
                }
                function decode_url($url)
                {
                    return str_replace('&', '&', str_rot13(rawurldecode($url)));
                }
            }
            else if ($this->flags['base64_encode'])
            {
                function encode_url($url)
                {
                    return rawurlencode(base64_encode($url));
                }
                function decode_url($url)
                {
                    return str_replace('&', '&', base64_decode(rawurldecode($url)));
                }
            }
            else
            {
                function encode_url($url)
                {
                    return rawurlencode($url);
                }
                function decode_url($url)
                {
                    return str_replace('&', '&', rawurldecode($url));
                }
            }
        }
      

  2.   

    you must use PHProxy__construct() once or more before you use encode_url().