Re: installing pear on unix via ssh on mac os x !

From: Date: Wed, 07 Jan 2004 16:03:05 +0000
Subject: Re: installing pear on unix via ssh on mac os x !
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-10038@lists.php.net to get a copy of this message
the line in quesion is this: if (DB::isError($rsTmp = $this->_oConn->query($sql))) { _oConn is part of my class: class news { // open the class definition /**
     * PEAR db object
     *
     * @var object
     * @access private
     */
    var $_oConn;
    // CONSTRUCTOR ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    /**
     * class constructor
     *
     * @param integer $iNewsId [optional] unique news identifier
     * @access public
     */
    function news() {
        // implement pear db object
        $this->_oConn =& DB::connect(DSN);
        if (DB::isError($this->_oConn) ) {
            catchExc($this->_oConn->getMessage());
        }
    }
} // end class def Everything works fine locally. Cheers, Jon jon bennett | jon@jben.net new media creative _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ J b e n . n e t 91 Gloucester Rd, Trowbridge, Wilts, BA14 0AD t: +44 (0) 1225 341039 w: http://www.jben.net/ On 7 Jan 2004, at 12:51, Pierre-Alain Joye wrote:
On Wed, 7 Jan 2004 12:46:07 +0000 Jon Bennett <jon@jben.net> wrote:
HELP! Never used SSH before (though I have used telnet) and my host won't install pear for me without me paying some extoriant fee to do so! I've logged in and entered the line to install the pear package manager... $ lynx -source http://go-pear.org/ | php but all I got was... sh: $: command not found Content-type: text/html X-Powered-By: PHP/4.3.3 Anyone ever done this from os x before ???
Yes, works like a charm. It seems you do not have lynx installed. Try to get go-pear with wget or OSX equivalent, or move it using ftp to your home folder. Then php -q go-pear.php.
I've already tried the web installer, but although it appears to install ok and I get no include errors for the pear libs from my site (for DB.php, Mail.php etc) I can't seem to access any methods (though it is namely the 'query') so my code always breaks. here's the error:
Fatal error: Call to undefined function: query() in /hsphere/local/home/jonbenne/_lib/_classes/class.news.php on line 243 that is a pear method isn't it ??? Any ideas ??
Sources help to reproduce/understand what you are doing... hth pierre -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.pear.general (#10038) next »