Pear PHP Warnings [SOLVED]

I recently built a web-server and followed the arch wiki docs to complete the LAMP installation and everything ran smoothly.
However, now when I upgrade pear I get the following warnings:
# pear upgrade
PHP Warning:  Module 'mcrypt' already loaded in Unknown on line 0
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
anyone else run into this glitch?
Last edited by monash (2011-11-11 03:17:42)

Many thanks SidK!
I checked /etc/php/conf.d and found i had left behind an old custom.ini containing:
extension=mcrypt.so
extension=mysql.so
removed the /etc/php/conf.d/custom.ini and all is well with pear upgrade :-)

Similar Messages

  • PHP Sendmail [SOLVED]

    I am trying to use a PHP script to send mail with the PHP mail() function. Looking at phpinfo(), I see "/usr/sbin/sendmail -t -i" for the local and master values of sendmail_path. However, if I manually issue "/usr/sbin/sendmail -t -i" as root, I receive the error "-bash: /usr/sbin/sendmail: No such file or directory". Do I need to install sendmail? I cannot find a package for it on Arch... Does anyone know what I am doing wrong?
    Last edited by tony5429 (2008-04-25 18:41:03)

    Try postfix, courier-mta or ssmtp.  All of them have a sendmail binary.  If you don't need a full-blown mta, ssmtp may be the best bet, but any will do.

  • Big PHP problem (SOLVED)

    Hello. I have a big problem. I installed php. For an example, script <? print "hello"; ?> working good, but script like that:
    <? print "labas"; ?>
    <?php
    session_start();
    include("config.php");
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="content-type" content="text/html; charset=windows-1257" />
    <title>4Friends</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <link href="default.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="header">
    <div id="logo">
    <h1><a href="#">Hello</a></h1>
    <h2><a href="?">Bla bla bla </a></h2>
    </div>
    </div>
    <div id="menu">
    <ul>
    <li class="first"><a href="#" title="">News</a></li>
    <li><a href="#" title="">Menu</a></li>
    <li><a href="#" title="">Skyrelis 1 </a></li>
    <li><a href="#" title="">Skyrelis 2 </a></li>
    <li><a href="#" title="">Skyrelis 3 </a></li>
    </ul>
    </div>
    <div id="content">
    <div id="sidebar">
    <div id="login" class="boxed">
    <h2 class="title">Wah</h2>
    <div class="content">
    <? include("nevermind :)"); ?>
    </div>
    </div>
    <div id="updates" class="boxed">
    <h2 class="title">Bla bla bla </h2>
    <div class="content">
    <ul>
    <li>
    <h3>Balandio 20, 2007</h3>
    <p><a href="#">Pew pew</a></p>
    </li>
    </ul>
    </div>
    </div>
    <div id="partners" class="boxed">
    <h2 class="title">Aaa</h2>
    <div class="content"></div>
    </div>
    </div>
    <?
    PHP CODE WITCH DOESNT MATTER HERE
    ?>
    </div>
    <div id="footer"><p>
    <a href="http://validator-test.w3.org/check?uri=referer"><img
    src="http://www.w3.org/Icons/valid-xhtml10-blue"
    alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a>
    </p>
    <p>
    <a href="http://jigsaw.w3.org/css-validator/">
    <img style="border:0;width:88px;height:31px"
    src="http://jigsaw.w3.org/css-validator/images/vcss"
    alt="Valid CSS!" />
    </a>
    </p>
    </div>
    </body>
    </html>
    <?
    sql_disconn();
    ?>
    Displays only white screen. short_open_tag is on in php.ini. Can anyone say what is the problem? I tryed to run this script on windows WAMP, and this goes good.
    Last edited by neXTPeer (2007-07-28 08:09:09)

    neXTPeer wrote:
    ralvez wrote:
    It's got to be some misconfiguration on  your end. I just put the file in my server and works fine.
    R
    Am. I still don't get it what is the problem.
    The whole extent of your code is 5 php statements and the rest is HTML but you get a blank page ... take the php code out and see if the HTML shows. Make sure you set the permissions of that file to 744, and test. You should be able to see the html document. If you do not see anything then type on a console (as root) "tail -f /var/log/httpd/error_log" so  you can see the errors that the server returns.
    If HTML works, then begin to add the php code one block at a time  (you only have 5 so that should not be too hard) until it fails and then analyze the logs to see what upsets your server.
    Hope this helps.
    R

  • Roundcube not working after last php update [SOLVED]

    After the last php update my roundcubemail stopped working.  The log-in page loads and after attempting to log in I get the following error:
    IMAP Error in /usr/share/webapps/roundcubemail/program/lib/Roundcube/rcube_imap.php (184): Login failed for [email protected] from 192.168.1.1. Could not connect to ssl://localhost:993: Unknown reason (fsockopen() function disabled?)
    Last edited by whahn1983 (2014-09-19 18:46:11)

    I fixed it yesterday. I modified the PKGBUILD to get the upstream fix.
    # $Id$
    # Maintainer: Sergej Pupykin <[email protected]>
    pkgname=roundcubemail
    pkgver=1.0.2.3b55da
    pkgrel=1
    pkgdesc="A PHP web-based mail client"
    arch=('any')
    url="http://www.roundcube.net"
    license=('GPL')
    depends=('php')
    optdepends=('python2')
    backup=('etc/webapps/roundcubemail/.htaccess'
    'etc/webapps/roundcubemail/apache.conf')
    install=roundcubemail.install
    options=('!strip' 'emptydirs')
    source=("${pkgname}::git+https://github.com/roundcube/roundcubemail.git#commit=9a498212446f6c9a186df5652a7625526b590b78"
    apache.conf)
    md5sums=('SKIP'
    'f11b17e2a80b383cde4af963fb307541')
    prepare() {
    cd ${srcdir}/${pkgname}
    sed -i \
    -e "s|RCUBE_INSTALL_PATH . 'temp.*|'/var/cache/roundcubemail';|" \
    -e "s|RCUBE_INSTALL_PATH . 'logs.*|'/var/log/roundcubemail';|" \
    config/defaults.inc.php \
    program/lib/Roundcube/rcube_config.php
    package() {
    mkdir -p ${pkgdir}/etc/webapps/roundcubemail
    mkdir -p ${pkgdir}/usr/share/webapps
    mkdir -p ${pkgdir}/var/log
    cd ${pkgdir}/usr/share/webapps
    cp -ra ${srcdir}/${pkgname} roundcubemail
    cd roundcubemail
    mv .htaccess $pkgdir/etc/webapps/roundcubemail/
    ln -s /etc/webapps/roundcubemail/.htaccess .htaccess
    mv config $pkgdir/etc/webapps/roundcubemail/
    ln -s /etc/webapps/roundcubemail/config config
    install -dm0750 $pkgdir/var/{log,cache}/roundcubemail
    install -Dm0644 $srcdir/apache.conf $pkgdir/etc/webapps/roundcubemail/apache.conf
    # install -dm0755 $pkgdir/etc/php/conf.d/
    # cat <<EOF >$pkgdir/etc/php/conf.d/$pkgname.ini
    #open_basedir = ${open_basedir}:/etc/webapps/roundcubemail:/usr/share/webapps/roundcubemail:/var/log/roundcubemail:/var/cache/roundcubemail
    #EOF
    rm -rf temp logs
    Then I added these values to my roundcube config:
    // IMAP socket context options
    // See http://php.net/manual/en/context.ssl.php
    // The example below enables server certificate validation
    //$config['imap_conn_options'] = array(
    // 'ssl' => array(
    // 'verify_peer' => true,
    // 'verify_depth' => 3,
    // 'cafile' => '/etc/openssl/certs/ca.crt',
    $config['imap_conn_options'] = array(
    'ssl' => array(
    'verify_peer' => false,
    'verfify_peer_name' => false,
    // SMTP connection timeout, in seconds. Default: 0 (use default_socket_timeout)
    // Note: There's a known issue where using ssl connection with
    // timeout > 0 causes connection errors (https://bugs.php.net/bug.php?id=54511)
    $config['smtp_timeout'] = 5;
    // SMTP socket context options
    // See http://php.net/manual/en/context.ssl.php
    // The example below enables server certificate validation, and
    // requires 'smtp_timeout' to be non zero.
    // $config['smtp_conn_options'] = array(
    // 'ssl' => array(
    // 'verify_peer' => true,
    // 'verify_depth' => 3,
    // 'cafile' => '/etc/openssl/certs/ca.crt',
    $config['smtp_conn_options'] = array(
    'ssl' => array(
    'verify_peer' => false,
    'verify_peer_name' => false,
    It works like a charm.

  • Locale warnings [solved]

    Pacman (3.03) and some applications give this warning -
    warning: current locale is invalid; using default "C" locale
    Running "locale -a" shows this
    locale: Cannot set LC_CTYPE to default locale: No such file or directory
    locale: Cannot set LC_MESSAGES to default locale: No such file or directory
    C
    POSIX
    While there are no problems as yet, I would really like to fix the issue, could anyone help me out?
    Thanks,
    Last edited by ujjwal (2007-05-12 04:46:42)

    Following the wiki: http://wiki.archlinux.org/index.php/Locale
    I had nothing in: /etc/locale.gen
    So I entered:
    en_GB.UTF-8     UTF-8
    Then ran locale-gen:
    [root@voodoo ahaslam]# locale-gen
    Generating locales...
    Generation complete.
    Running locale -a gave:
    locale: Cannot set LC_CTYPE to default locale: No such file or directory
    locale: Cannot set LC_MESSAGES to default locale: No such file or directory
    C
    POSIX
    So:
    [root@voodoo ahaslam]# stat /usr/share/i18n/locales/en_GB
      File: `/usr/share/i18n/locales/en_GB'
      Size: 5334            Blocks: 16         IO Block: 4096   regular file
    Device: 804h/2052d      Inode: 335545864   Links: 1
    Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
    Access: 2007-05-13 22:54:51.385256465 -0700
    Modify: 2007-04-08 12:36:12.000000000 -0700
    Change: 2007-05-09 18:34:35.940984187 -0700
    en_GB.UTF-8 is set in /etc/rc.conf
    Any ideas?
    - ADDITIONAL COMMENT: FIXED -
    I was kindly advised by Neverther on IRC to remove /etc/locale.gen before reinstalling glibc & I'm glad to report that it worked perfectly, thanks again.
    Last edited by ahaslam (2007-05-14 16:35:22)

  • Using the Auth pear package with php 4 and oracle

    Hi all.
    I was wondering if anybody out there has had any success (or else) using the Auth Pear package with php 4 and Oracle.
    I'm trying to do just that but can't get it to work.
    I've found lots of examples on the web for mysql but none for oracle...
    Feedback on your experiences with this would be most appreciated.
    Thanks in advance.
    Rob

    Hi cj.
    Thanks for your advice. I came across those documents but discarded them as they didn't deal with the Auth pear package I was intending on using. I didn't want to look at other alternatives as the focus of my project was primarily on migrating existing data from a mysql setup to an oracle setup. And quickly.
    I hadn't found any documentation out there on using Auth with Oracle. All examples available on the web were mysql specific.
    I eventually got round to gutting the code from the package and finding the fix to my problem.
    Just for info, Auth expects by default an auth table containing two fields username and password. That's lowercase table and field names.
    If the table name or field names to be used differ from these then they must be explicitly defined when calling Auth. Doing so resolved my problem.
    My mysql db had all lowercase naming, while my oracle db has all uppercase naming throughout.
    It is important to note that the Auth package uses the table and field names quoted, thus referring to the table and fields in a case sensitive way.
    So for an uppercase table and fields setup the call has to be :
    $options = array(
        'dsn' => "$dsn_for_my_oracledb",
        'table' => 'AUTH',
        'usernamecol' => 'USERNAME',
        'passwordcol' => 'PASSWORD',
        'db_fields' => '*',
    $a = new Auth("DB", $options , "loginFunction");I hope this helps anybody trying to use this package with oracle. It worked great for me.
    Pear Auth package documentation:
    http://www.pear.php.net/manual/en/package.authentication.auth.intro.php
    Regards,
    Robert

  • How Can i use the key file Generated by RSACryptoServiceProvider to encrypt with php?

    I need to be able to encrypt data in PHP using a public key generate by .NET(RSACryptoServiceProvider).  I will then decrypt the data later in C# using the private key.
    Code Snippet
    <RSAKeyValue><Modulus>xU5JyaPNDKXI/h/uo5Vk89wZSz3zsB1+c+1IMYIQa+mCmuRCRPuoBI7ODSV2ndP6grfhdrWEzhpZtkI3SThbBh/3t+tfZ2PF8Iyv9ECN07V64nPCiJGhAnfENE+J9UD9Kw5czXHgZcBbpM5N0VfXmLSleaS65DDoNPtoStVy7ss=</Modulus><Exponent>AQAB</Exponent><P>4ScAjVrPZii/6lICAP2yDQiNEmNL74+5AcxNVDI0IombfDPIygrqEWmuDu0pngApQak7XnEnLbaDChILFiHPZQ==</P><Q>4FaYlse+cjrlPD/jk+GsTJeuP7yuQx8ztjVnQWVh6GKQP+uk1dAl6kcZOfLNR6LWwE3CSygt8PthTEw96Zbabw==</Q><DP>XvXtNLE9UjATqYeHEtXtV7Pok/3PVC3A8PIzFzTJaluxeXP51sU9rbRt1hvO9rXIsMnooU+GH7Cfmgq8JEyERQ==</DP><DQ>HXkC/vwq9xLpvuqd2XXSjxV2XQVK16Knxo5pjFvnawJX9S3eMADymj7Q/534firUj9snZXxX3MsJ015I3AFnnQ==</DQ><InverseQ>AM0fVCE3n2FKf2zb3CcDEge1Ko35VvMEL+LXgR87QwO2HScZSuLevGLi2SSAkB1vu8RSNzB028SZReeOZWnq4Q==</InverseQ><D>fI+GKdRNOTTYhQZnw8Im74T+OvArjf2wvUMJlqfD8jyDBYIhDCfL1MTK9KW4Er+moSuxHR5Pb0ZXaKa4/HKlk0aJ1jB2C+jg7zTSuPRNuS16BpVHaJYsQurCwZwElXMum+GxeXK/h3wXWq5HwebjqZr0aLUMZKRcweDPRoVFiRE=</D></RSAKeyValue>
    As you see this code snippet is a xml format private key. at .net platform,which can use encrypt or dencrypt.
    i have try the Extension Crypt RSA ( http://pear.php.net/reference/Crypt_RSA-1.0.0/elementindex_Crypt_RSA.html ) to help me encrypt data by php.but it haven't return a currect result. the data encrypted by php cann't dencrypt by c#.
    does the RSA algorithm provider by Crypt_RSA can give a stand result as c#?
    BTW :i just use the xmlkeystring like this.
    Code Snippet
    <?php
    require_once("Crypt/RSA.php");
    require_once("includes/Utils.class.php");
        $public_key_string = simplexml_load_string("<RSAKeyValue><Modulus>xU5JyaPNDKXI/h/uo5Vk89wZSz3zsB1+c+1IMYIQa+mCmuRCRPuoBI7ODSV2ndP6grfhdrWEzhpZtkI3SThbBh/3t+tfZ2PF8Iyv9ECN07V64nPCiJGhAnfENE+J9UD9Kw5czXHgZcBbpM5N0VfXmLSleaS65DDoNPtoStVy7ss=</Modulus><Exponent>AQAB</Exponent><P>4ScAjVrPZii/6lICAP2yDQiNEmNL74+5AcxNVDI0IombfDPIygrqEWmuDu0pngApQak7XnEnLbaDChILFiHPZQ==</P><Q>4FaYlse+cjrlPD/jk+GsTJeuP7yuQx8ztjVnQWVh6GKQP+uk1dAl6kcZOfLNR6LWwE3CSygt8PthTEw96Zbabw==</Q><DP>XvXtNLE9UjATqYeHEtXtV7Pok/3PVC3A8PIzFzTJaluxeXP51sU9rbRt1hvO9rXIsMnooU+GH7Cfmgq8JEyERQ==</DP><DQ>HXkC/vwq9xLpvuqd2XXSjxV2XQVK16Knxo5pjFvnawJX9S3eMADymj7Q/534firUj9snZXxX3MsJ015I3AFnnQ==</DQ><InverseQ>AM0fVCE3n2FKf2zb3CcDEge1Ko35VvMEL+LXgR87QwO2HScZSuLevGLi2SSAkB1vu8RSNzB028SZReeOZWnq4Q==</InverseQ><D>fI+GKdRNOTTYhQZnw8Im74T+OvArjf2wvUMJlqfD8jyDBYIhDCfL1MTK9KW4Er+moSuxHR5Pb0ZXaKa4/HKlk0aJ1jB2C+jg7zTSuPRNuS16BpVHaJYsQurCwZwElXMum+GxeXK/h3wXWq5HwebjqZr0aLUMZKRcweDPRoVFiRE=</D></RSAKeyValue>");
        $key =new Crypt_RSA_Key(base64_decode($public_key_string->Modulus),base64_decode($public_key_string->Exponent),"public");
        echo "<pre>";
        print_r($key);
        echo "</pre>";
        $rsa_obj = new Crypt_RSA();
        //try encrypt data
        echo "encrypted result is:<br/>".$rsa_obj->encrypt("this is a smple text.",$key)
        ?>
    but the encrypted data cann't decrypt by c#?where is the problem?what should i do with php codes?

    thank you for your reply, i also found this article by google.but this does not meet scene,  thank you all the same.
    i have already solved the problem now,i'd like to post the Solution .infact it's so easy to use rsakey file generated by .net .
    -------------rsa.class.php-------------------
    Code Snippet
    <?php
     * Some constants
    define("BCCOMP_LARGER", 1);
    class RSA
      * PHP implementation of the RSA algorithm
      * (C) Copyright 2004 Edsko de Vries, Ireland
      * Licensed under the GNU Public License (GPL)
      * This implementation has been verified against [3]
      * (tested Java/PHP interoperability).
      * References:
      * [1] "Applied Cryptography", Bruce Schneier, John Wiley & Sons, 1996
      * [2] "Prime Number Hide-and-Seek", Brian Raiter, Muppetlabs (online)
      * [3] "The Bouncy Castle Crypto Package", Legion of the Bouncy Castle,
      *      (open source cryptography library for Java, online)
      * [4] "PKCS #1: RSA Encryption Standard", RSA Laboratories Technical Note,
      *      version 1.5, revised November 1, 1993
      * Functions that are meant to be used by the user of this PHP module.
      * Notes:
      * - $key and $modulus should be numbers in (decimal) string format
      * - $message is expected to be binary data
      * - $keylength should be a multiple of 8, and should be in bits
      * - For rsa_encrypt/rsa_sign, the length of $message should not exceed
      *   ($keylength / 8) - 11 (as mandated by [4]).
      * - rsa_encrypt and rsa_sign will automatically add padding to the message.
      *   For rsa_encrypt, this padding will consist of random values; for rsa_sign,
      *   padding will consist of the appropriate number of 0xFF values (see [4])
      * - rsa_decrypt and rsa_verify will automatically remove message padding.
      * - Blocks for decoding (rsa_decrypt, rsa_verify) should be exactly
      *   ($keylength / 8) bytes long.
      * - rsa_encrypt and rsa_verify expect a public key; rsa_decrypt and rsa_sign
      *   expect a private key.
      * rsa encrypt data
      * @param binary string $message
      * @param unknown_type $public_key
      * @param numbers $modulus
      * @param numbers $keylength
      * @return binary data
     function rsa_encrypt($message, $public_key, $modulus, $keylength)
      $padded = RSA::add_PKCS1_padding($message, true, $keylength / 8);
      $number = RSA::binary_to_number($padded);
      $encrypted = RSA::pow_mod($number, $public_key, $modulus);
      $result = RSA::number_to_binary($encrypted, $keylength / 8);
      return $result;
     function rsa_decrypt($message, $private_key, $modulus, $keylength)
      $number = RSA::binary_to_number($message);
      $decrypted = RSA::pow_mod($number, $private_key, $modulus);
      $result = RSA::number_to_binary($decrypted, $keylength / 8);
      return RSA::remove_PKCS1_padding($result, $keylength / 8);
     function rsa_sign($message, $private_key, $modulus, $keylength)
      $padded = RSA::add_PKCS1_padding($message, false, $keylength / 8);
      $number = RSA::binary_to_number($padded);
      $signed = RSA::pow_mod($number, $private_key, $modulus);
      $result = RSA::number_to_binary($signed, $keylength / 8);
      return $result;
     function rsa_verify($message, $public_key, $modulus, $keylength)
      return RSA::rsa_decrypt($message, $public_key, $modulus, $keylength);
     function rsa_kyp_verify($message, $public_key, $modulus, $keylength)
      $number = RSA::binary_to_number($message);
      $decrypted = RSA::pow_mod($number, $public_key, $modulus);
      $result = RSA::number_to_binary($decrypted, $keylength / 8);
      return RSA::remove_KYP_padding($result, $keylength / 8);
      * The actual implementation.
      * Requires BCMath support in PHP (compile with --enable-bcmath)
     // Calculate (p ^ q) mod r
     // We need some trickery to [2]:
     //   (a) Avoid calculating (p ^ q) before (p ^ q) mod r, because for typical RSA
     //       applications, (p ^ q) is going to be _WAY_ too large.
     //       (I mean, __WAY__ too large - won't fit in your computer's memory.)
     //   (b) Still be reasonably efficient.
     // We assume p, q and r are all positive, and that r is non-zero.
     // Note that the more simple algorithm of multiplying $p by itself $q times, and
     // applying "mod $r" at every step is also valid, but is O($q), whereas this
     // algorithm is O(log $q). Big difference.
     // As far as I can see, the algorithm I use is optimal; there is no redundancy
     // in the calculation of the partial results.
     function pow_mod($p, $q, $r)
      // Extract powers of 2 from $q
      $factors = array();
      $div = $q;
      $power_of_two = 0;
      while(bccomp($div, "0") == BCCOMP_LARGER)
       $rem = bcmod($div, 2);
       $div = bcdiv($div, 2);
       if($rem) array_push($factors, $power_of_two);
       $power_of_two++;
      // Calculate partial results for each factor, using each partial result as a
      // starting point for the next. This depends of the factors of two being
      // generated in increasing order.
      $partial_results = array();
      $part_res = $p;
      $idx = 0;
      foreach($factors as $factor)
       while($idx < $factor)
        $part_res = bcpow($part_res, "2");
        $part_res = bcmod($part_res, $r);
        $idx++;
       array_push($partial_results, $part_res);
      // Calculate final result
      $result = "1";
      foreach($partial_results as $part_res)
       $result = bcmul($result, $part_res);
       $result = bcmod($result, $r);
      return $result;
     // Function to add padding to a decrypted string
     // We need to know if this is a private or a public key operation [4]
     function add_PKCS1_padding($data, $isPublicKey, $blocksize)
      $pad_length = $blocksize - 3 - strlen($data);
      if($isPublicKey)
       $block_type = "\x02";
       $padding = "";
       for($i = 0; $i < $pad_length; $i++)
        $rnd = mt_rand(1, 255);
        $padding .= chr($rnd);
      else
       $block_type = "\x01";
       $padding = str_repeat("\xFF", $pad_length);
      return "\x00" . $block_type . $padding . "\x00" . $data;
     // Remove padding from a decrypted string
     // See [4] for more details.
     function remove_PKCS1_padding($data, $blocksize)
      assert(strlen($data) == $blocksize);
      $data = substr($data, 1);
      // We cannot deal with block type 0
      if($data{0} == '\0')
      die("Block type 0 not implemented.");
      // Then the block type must be 1 or 2
      assert(($data{0} == "\x01") || ($data{0} == "\x02"));
      // Remove the padding
      $offset = strpos($data, "\0", 1);
      return substr($data, $offset + 1);
     // Remove "kyp" padding
     // (Non standard)
     function remove_KYP_padding($data, $blocksize)
      assert(strlen($data) == $blocksize);
      $offset = strpos($data, "\0");
      return substr($data, 0, $offset);
     // Convert binary data to a decimal number
     function binary_to_number($data)
      $base = "256";
      $radix = "1";
      $result = "0";
      for($i = strlen($data) - 1; $i >= 0; $i--)
       $digit = ord($data{$i});
       $part_res = bcmul($digit, $radix);
       $result = bcadd($result, $part_res);
       $radix = bcmul($radix, $base);
      return $result;
     // Convert a number back into binary form
     function number_to_binary($number, $blocksize)
      $base = "256";
      $result = "";
      $div = $number;
      while($div > 0)
       $mod = bcmod($div, $base);
       $div = bcdiv($div, $base);
       $result = chr($mod) . $result;
      return str_pad($result, $blocksize, "\x00", STR_PAD_LEFT);
    ?>
    -------------RSAProcessor.class.php------------------------
    Code Snippet
    <?php
    require_once("rsa.class.php");
    class RSAProcessor
     private $public_key = null;
     private $private_key = null;
     private $modulus = null;
     private $key_length = "1024";
     public function __construct($xmlRsakey=null,$type=null)
             $xmlObj = null;
       if($xmlRsakey==null)
               $xmlObj = simplexml_load_file("xmlfile/RSAKey.xml");
              elseif($type==RSAKeyType::XMLFile)
               $xmlObj = simplexml_load_file($xmlRsakey);
              else
               $xmlObj = simplexml_load_string($xmlRsakey);
             $this->modulus = RSA::binary_to_number(base64_decode($xmlObj->Modulus));
       $this->public_key = RSA::binary_to_number(base64_decode($xmlObj->Exponent));
       $this->key_length = strlen(base64_decode($xmlObj->Modulus))*8;
      * get public key
      * @return string public key
     public function getPublicKey()
      //return base64_encode(RSA::number_to_binary($this->public_key,($this->key_length)/8));
      return $this->public_key;
     public function getPrivateKey()
      //return base64_encode(RSA::number_to_binary($this->private_key,($this->key_length)/8));
      return $this->private_key;
     public function getKeyLength()
      return $this->key_length;
     public function getModulus()
      return $this->modulus;
      * encrypt data
      * @param string $data
      * @return base64 encoded  binary string
     public function encrypt($data)
      return base64_encode(RSA::rsa_encrypt($data,$this->public_key,$this->modulus,$this->key_length));
     public function dencrypt($data)
      return RSA::rsa_decrypt($data,$this->private_key,$this->modulus,$this->key_length);
     public function sign($data)
      return RSA::rsa_sign($data,$this->private_key,$this->modulus,$this->key_length);
     public function verify($data)
      return RSA::rsa_verify($data,$this->public_key,$this->modulus,$this->key_length);
    class RSAKeyType
     const XMLFile = 0;
     const XMLString = 1;
    ?>
    -------------- encrypt data with public key-----------------
    Code Snippet
    <?php
    require_once("RSAProcessor.class.php");
    $processor = new RSAProcessor
    ("<RSAKeyValue><Modulus>m6ljoeWhmnd0oRnsVEH5iNw3B8+vKVu7v7CVfMyf6bnKEzHa62TRmT/baJiSevoI/vgm2ph/s1JrQQTaGiErHicigwSC
    Aw7+i05WFbnz7tOyiiJJVMfsdd+v7Xan9Hiud05FzxoMbM8vpiMHPEIDbGJ1MiXyupTVkz2WcMHyBoJ4S189opktZ43pviUhy0PeuWkyoU7zR54akPmK
    Yg+z5Zr1r7K8lUZ1a3TThfJGxTQR/uZMtZz/q8QF0AANVQ/eyahTv9icBzBoDuncS0Y5l3vqogW1C/ltJvhJpvSn/OgjbRjuixCAptOUmRd13sDWU95/
    x0bMq+Lg68lj2OjJ1Q==</Modulus><Exponent>AQAB</Exponent><P>zfvdBsMLlmo+4PAUYLgSV2xyyVa7ZqFjkJaAE4EbYuH24EoZjrzeiJR++D
    FUT/GUhjfZ5eZ/5e29dXwk0sKUw6nHzBdBtOPp5fr4t5SKLEcWY+J+zLUSOlhG9NUkohFf6+Miy2Y7BLpXVrcl6UwXV0ak8KkTPB2l/aIMwYj5dgc=</
    P><Q>wXV0sA3nDzoSDQA/4QSu/WIlBhkA3jZ7K7G9Z9rpP1A0vH+bZeyCIyo52u8ahGuYbubaizF1XMp+Xv3Mh2KmRbt7+UptwEwbFAUiiad2a312mqm
    j7IJd7gRjGkyzKEm+6fpNeY3NFLNVNhccBqzhNkRoM22xnvQcImD10XVAakM=</Q><DP>wd1HdCLEWCfc0DYE59a2pINUMXyo2foRTDbpifHcRZ+ojAY
    Rsc6+nsssCQnccXVMNVqBgSgEvfGYe+eAfMBX5SN5APPuioJrVGF2DsoFlZC+WPoGH0JYSoNlHO8yEDrMDaXzzH2GFHgQ1XOAged0nFbHzB1FFjJNVL5
    cxRXWu6c=</DP><DQ>QDKuCk5SwubOXqoaiJ15RHRxPNjHRPZnYVSWOgSXKn9/QJ5H/0bA2NKGaHS4JAFgkEzjcRV0kNpRnUwztymxa6qPtWZRjWK0Ca
    y6jVuZHIqB9UkeMLoCWZ3zFSMmwNPYGuUJGLFJwPjR6iU5E64C/nMs8QQR0WHIhFAQwvVZ7uk=</DQ><InverseQ>JckMSlJR10VZdnp83VPjrZ/Z+63
    CGu3tWHm7f4DJ8IwjJWr8FlCpbSwiP6a4e9Upv6bUn/tOj2gY6MMq5G5yTKm2SCRvpUKRu4NCmWAt7vlFv0Z6pkXlTOpzvVjv3v16+dIZOA5Zn+v7+r1
    xbdYdH20KRAbiBO3MfQP7s+VJJvM=</InverseQ><D>W1xrBr2hQOj1wgxWAgoK7IHbprEFrK+TnWmGA46SGPsbmHJ9fAVbY6fwHg7Wgmk4WHXLUCeLY
    /Nu0eWIISfwh60Oe3ls2WC2k4qxyeSvQDBuLNb81U7WAUT9m9E1uK4QMCP3oxs1ybM80zTh7UMNgVK0WG+fbFUomVffcWTTqW+Fu12PEIO+UR/85oq+x
    qVlTzYAEzt1OE9IhkYiRzi99ePXeH2gFltzJ/fb/7jLsDTkhM2eiYTGyOTZmBnen6c6a8b9LFTY4Bc0bGpk5ezHkub6F8p2ZgL/JgIOJMyRZICjDjs+9
    k9PTmMTFsCF6xzHY15Fg25xIDYzIyx1rrRUjQ==</D></RSAKeyValue>",RSAKeyType::XMLString);
    $rs =  $processor->encrypt("Hello,It's Works.");
    echo $rs;
    ?>
    with the front codes.you can easy to encrypt data by public key generate by .net programe.

  • What happened to PEAR/PECL libraries?

    I noticed recently that while Mac OS X 10.6 ships with PEAR installed for PHP, it’s completely missing from Server 10.6. Does anyone know why? I tried to install PEAR from the Web but it refuses:
    curl http://pear.php.net/go-pear | sudo php
    (Accept all the defaults)
    Downloading package: PEAR.............PHP Deprecated: Function eregi() is deprecated in - on line 1080
    ok
    Downloading package: Structures_Graph....PHP Deprecated: Function eregi() is deprecated in - on line 1080
    ok
    Preparing installer..................
    PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/temp/temp/PEAR/Config.php on line 650
    PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/temp/temp/PEAR/Config.php on line 697
    PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/temp/temp/PEAR/Config.php on line 757
    PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/temp/temp/PEAR/Config.php on line 786
    PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/temp/temp/PEAR/Config.php on line 914
    PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/temp/temp/PEAR/Config.php on line 1577
    PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/temp/temp/PEAR/Config.php on line 1607
    PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/temp/temp/PEAR/Config.php on line 2038
    PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/temp/temp/PEAR/Config.php on line 2091
    PHP Fatal error: Cannot redeclare PEAR_calldestructors() (previously declared in /usr/local/temp/PEAR.php:765) in /usr/local/temp/temp/PEAR.php on line 777
    This is on my office’s 2.66 GHz mini Server w/4 GB RAM, Mac OS X Server 10.6.4 with all Software Updates applied and Xcode installed.

    David,
    I tried what you tried from /usr/local and got the same result. Then I tried it from my home directory as follows:
    curl http://pear.php.net/go-pear > go-pear.php
    sudo php -q go-pear.php
    You can accept all of the default options EXCEPT make sure that you set the "Installation prefix ($prefix)" to /usr/local.
    There are more instructions here: http://clickontyler.com/blog/2008/01/how-to-install-pear-in-mac-os-x-leopard/
    It gave a lot of deprecation warnings but it worked.
    hth

  • HowTo: The SSH2 PHP Extension and You

    Until a few days ago, I didn't care about the SSH extension for PHP. I didn't have a use for it. Why should I care. Then I discovered that Wordpress' autoupdate feature wouldn't work without it (if you use SFTP, like I do). Oh. Maybe I need this thing.
    Problem 1) It isn't installed by default by Apple.
    Problem 2) All the online help says to use PECL to install it. Also not installed.
    Problem 3) Everything else that could possibly go wrong.
    So, I'm not guaranteeing this will work for you, or not destroy your server completely, but it worked for me. So...um...beware.
    The end result we're looking for is a nice little ssh2.so extension for php to look at. Now, let's try to get there:
    With all this talk of PECL, I decided to grab PEAR (which seems to no longer be a part of the OS) and install it. So I downloaded go-pear from: http://pear.php.net/go-pear and installed that.
    The only thing you need to change is the install directory (/usr/local is what I used, I think).
    Next comes the libssh libraries. These are required. Sadly, I could not install these from source. The reason? I received many errors about libz.dylib being of the wrong architecture. Weird, because I believe that came with the system. So it's Apple's fault if it's not i386 and 64bit. Darn.
    So I did a crazy thing and installed it through a port. Well, I backed up all of my existing libssh and libssl files before I did anything. Then I used Macports to install recent versions of those into /opt/local/lib
    Once that was done, I copied them over to /usr/local/lib and then crossed my fingers.
    Get the source from: http://www.libssh2.org/ then configure it with:
    +MACOSXDEPLOYMENTTARGET=10.6 CFLAGS="-arch x86_64 -g -Os -pipe -no-cpp-precomp" CCFLAGS="-arch x86_64 -g -Os -pipe" CXXFLAGS="-arch x86_64 -g -Os -pipe" LDFLAGS="-arch x86_64 -bindatload" ./configure --with-openssl+
    make
    +make install+
    If that works, you're halfway done.
    Download the latest PECL package for ssh2 from: http://pecl.php.net/package/ssh2
    Go to the directory and do the following:
    phpize
    Now stop. There's a bug in php that prevents this from working properly. So we have to patch it. Yeah, I told you this process was ridiculous. Copy this: http://remi.fedorapeople.org/ssh2-php53.patch into a text file in that same ssh2 directory. Run:
    +patch -p0 < patchfilename+
    Now we can configure and make:
    +MACOSXDEPLOYMENTTARGET=10.6 CFLAGS="-arch x86_64 -g -Os -pipe -no-cpp-precomp" CCFLAGS="-arch x86_64 -g -Os -pipe" CXXFLAGS="-arch x86_64 -g -Os -pipe" LDFLAGS="-arch x86_64 -bindatload" ./configure+
    make
    +make test+
    +make install+
    It should install a nice ssh2.so file somewhere in /usr/lib/php/extensions/
    Now edit your /etc/php.ini file to include that directory for: extension_dir = /usr/lib/php/extensions/no-debug-non-zts-200xxxxxx
    Also add the line: extension=ssh2.so in there somewhere.
    Now restart apache:
    +apachectl graceful+
    And you're done. You might need to look at your phpinfo to make sure it's loaded, but Wordpress should now be happy. Hope this helps someone. Took me a few days to get it right and I may have forgotten all the steps. But this should work.
    Message was edited by: Demonhood

    I think I followed your instructions and got SSH2 PHP installed. Nothing seemed to go wrong (though I was sure at points my server was literally just going to start laughing at me for all the wonky steps!), and phpinfo lists ssh2 as being installed. Auto-update in Wordpress now lists SSH2 as an option. However, I can't get it to work, each time getting the error message saying "Failed to connect to SSH2 Server hostname.net:22. I've tried IP address, different hostnames, password, no password, listed where the public and private keys are (which i think I generated correctly with the "ssh-keygen -t dsa" command, but still nothing. Can ssh normally from outside of the firewall. Wondering if you had any suggestions, as you obviously know what you are talking about regarding php/ssh/wordpress!

  • How to install PEAR on Linux server

    Hi
    I have PHP installed on one linux server and developers are using it already. I have been given the task to get the oci8 (oracle connectivity) done on this same server. I can not do the reinstall of whole PHP again. During the install of OCI extention I got many errors for missing PEAR files.
    So I went through the PEAR document and found "php go-pear.php" command to install the PEAR package. This command fails with below error.
    download of http://pear.php.net/get/PEAR?uncompress=yes failed: Failed to parse address "" (0)
    The problem is this Linux box does not have direct internet connectivity so I had to download all the required packages as per go-pear.php on my local machine and I am FTPing them to this linux box. I have kept the "PEAR-1.8.1.tar" file in the same directory where go-pear.php file exists but still the above command tries to download it from internet.
    Could you please tell me how can I overcome this problem. Please let me know if there are any RPM's that I can use to install PEAR rather that "php go-pear.php" command.
    Thanks
    Shelly

    Hi CJ.
    It has been more than 4 weeks that I am strugling to get PHP-Oracle work on my system. You are the only hope right now. I have gone through so many articles and white pages that I am totally confused and starting to hate PHP or actually Suse Linux. :-)
    Below are the details of my system.
    more SuSE-release
    SUSE LINUX Enterprise Server 9 (i586)
    VERSION = 9
    PATCHLEVEL = 4
    rpm -qa php* No results
    rpm -qa ph* --No results
    rpm -qa oracle*
    oracle-instantclient-devel-10.2.0.4-1
    oracle-instantclient-basic-10.2.0.4-1
    * which php*
    */usr/bin/php*
    * php -version*
    PHP 4.3.4 (cli) (built: Jan 17 2008 09:55:23)
    Copyright (c) 1997-2003 The PHP Group
    Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
    This is what I see on my system
    */usr/bin> ls -l |grep php*
    -rwxr-xr-x 1 root root 100308 2008-01-17 05:03 asp2php
    -rwxr-xr-x 1 root root 1392441 2008-01-17 04:55 php
    -rwxr-xr-x 1 root root 684 2008-01-17 04:55 php-config
    -rwxr-xr-x 1 root root 593 2008-01-17 04:55 phpextdist
    -rwxr-xr-x 1 root root 2082 2008-01-17 04:55 phpize
    /usr/bin> whereis php
    php: /usr/bin/php /etc/php.ini /usr/lib/php /usr/include/php /usr/share/php /usr/share/man/man1/php.1.gzI see that PHP is already installed on my system which is version PHP 4.3.4.
    Question.
    1) Do i have to upgrade the PHP version to the latest to get OCI8 configured?
    2) If the answer to the above question is Yes than could you point me to any reference doc?
    3) If the upgrade is not needed, how can I configure PHP to use OCI8 to connect to database?
    Thanks in advance
    Shelly

  • Php plugin 1.0 for sun java system webserver

    Hi,
    I installed php plugin 1.0 for sun java system webserver 7. But it supports default 2 DB mysql and postgresql. Can i configure oracle 10g DB support?
    Appreciate if you could throw some light on this.
    Thanks,
    Krish

    Using PHP with NSAPI plugin will definitely get you the best performance. However, if you are using PHP with NSAPI plugin enabled then you might have to be careful when you are installing any of the PHP extensions from PECL to make sure that they are thread safe.
    Note: There can be a potential issue only when using any of PECL (http://pecl.php.net) extension and not with any PEAR (http://pear.php.net) extensions.
    For example, if you PHP built for NSAPI and then using on top of WordPress or Drupal or on top of frameworks like ZF etc should not be a problem
    To compile PHP 5.3 with NSAPI, you would do some thing like
    ./configure --with-nsapi=<web-server7-install-directory>
    To compile PHP 5.3 with FastCGI, you would do some thing like
    ./configure enable-cgi enable-force-cgi-redirect

  • Question about SDK dependencies for PHP

    Dear Sirs,
    I'm having a problem when I was creating the connection with my azure storage account. so I have the folloowing questions:
    Is the folder structure of Azure SDK and its dependencies are correct?
    In the case the folder structure is not correct, how the folder structure with PEAR and  Azure must be?
    Please find below step-by-step I went thru trying to address the issue.
    When I running the following line the program stopped processing.
    $ BlobRestProxy = ServicesBuilder :: getInstance () -> createBlobService ($ connectionString);
    So I accessed the error log file that is in the LogFiles / php_errors.log and it showed the following error:
    [16-Mar-2015 12:18:33 America / Los_Angeles] PHP Warning: require_once (HTTP / Request2.php): failed to open stream: No such file or directory
    in D: \ home \ site \ wwwroot \ pear \ WindowsAzure \ Common \ Internal \ Http \ HttpClient.php on line 33
    [16-Mar-2015 12:18:33 America / Los_Angeles] PHP Fatal error: require_once (): Failed opening required 'HTTP / Request2.php' (include_path
    = '; C: \ php. \ Pear') in D: \ home \ site \ wwwroot \ pear \ WindowsAzure \ Common \ Internal \ Http \ HttpClient.php on line 33
    I opened the file HttpClient.php on the line 33 and there was the following code:
    require_once 'HTTP / Request2.php';
    We got information that Azure SDK for PHP requires the following PEAR packages:
    http_request2: http://pear.php.net/package/HTTP_Request2
    Mail_mime: http://pear.php.net/package/Mail_mime
    Mail_mimeDecode: http://pear.php.net/package/Mail_mimeDecode
    Also, we got the following links to help install above packages?
    https://github.com/Azure/azure-sdk-for-php/issues/694
    and
    http://stackoverflow.com/questions/4483317/failed-opening-required-http-request2-php-include-path-c-php5-pear
    We checked the above links and only way we could do thru below link:
    https://github.com/Azure/azure-sdk-for-php#install-as-a-pear-package
    After installation we got the following folder structure:
    "ajao" -> root folder
    "pear" -> folder that contains PEAR packages and Azure SDK
    The autoload page is located at the following folder path "ajao\pear\WindowsAzure\WindowsAzure.php"
    Even after Azure dependencies installation the above explained error still there.
    Is the folder structure of Azure SDK and its dependencies are correct?
    In the case the folder structure is not correct, how the folder structure with PEAR and  Azure must be?
    Thanks & Regards,
    Pedro Gustavo Duarte

    Dear Sean,
    There is no spaces. When we copied from Azure to text editor, we end up getting those spaces. The main problem is that in order to connect
    to Azure storage account we need to install Http_Request2, Mail_mime, and Mail_mimeDecode dependencies into Azure SDK for PHP. Unfortunately, we are not able to install them.
    Best regards,
    Pedro Gustavo Duarte

  • PLease help!! cannot make install php with oci8 instant client

    Cannot make install :
    Installing PHP SAPI module: cgi
    Installing PHP CGI into: /usr/local/bin/
    Installing PEAR environment: /usr/local/lib/php/
    ld.so.1: php: fatal: libnnz10.so: open failed: No such file or directory
    *** Error code 137
    The following command caused the error:
    /home/dmitriy/install/php-4.4.4/sapi/cli/php -n -dshort_open_tag=0 -dopen_basedir= -dsafe_mode=0 -dmemory_limit=-1 /home/dmitriy/install/php-4.4.4/pear/install-pear.php -d "/usr/local/lib/php" -b "/usr/local/bin" /home/dmitriy/install/php-4.4.4/pear/packages/*.tar
    make: Fatal error: Command failed for target `install-pear-packages'
    Current working directory /home/dmitriy/install/php-4.4.4
    *** Error code 1
    The following command caused the error:
    if /home/dmitriy/install/php-4.4.4/build/shtool mkdir -p /usr/local/lib/php; then \
    make -s install-pear-packages; \
    else \
    cat /home/dmitriy/install/php-4.4.4/pear/install-pear.txt; \
    exit 5; \
    fi
    make: Fatal error: Command failed for target `install-pear'
    LD_LIBRARY_PATH is set where i unziped oracle client instantclient
    debug.log
    CONFIGURE: './configure' '-with-oci8-instant-client=/home/dmitriy/instantclient_10_2'
    CC: gcc
    CFLAGS: -g -O2
    CPPFLAGS: -D_POSIX_PTHREAD_SEMANTICS
    CXX:
    CXXFLAGS:
    INCLUDES: -I/home/dmitriy/instantclient_10_2/sdk/include
    LDFLAGS: -R/usr/ucblib -L/usr/ucblib -R/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3 -L/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3 -R/home/dmitriy/instantclient_10_2 -L/home/dmitr
    iy/instantclient_10_2
    LIBS: -lresolv -lm -lnsl -lsocket -lgcc -lclntsh
    DLIBS:
    SAPI: cgi
    PHP_RPATHS: /usr/ucblib /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3 /home/dmitriy/instantclient_10_2
    uname -a: SunOS solaris 5.10 Generic_118855-33 i86pc i386 i86pc
    gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib -R/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3 -L/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3 -R/home/d
    mitriy/instantclient_10_2 -L/home/dmitriy/instantclient_10_2 conftest.c -lresolv -lm -lnsl -lsocket -lgcc -lclntsh 1>&5
    ld.so.1: conftest: fatal: libnnz10.so: open failed: No such file or directory

    Please grab the "re-factored" oci8 code from http://pecl.php.net/package/oci8. The version of oci8 distributed with PHP 4 should be avoided. Replace the PHP 4.4 ext/oci8 directory completely with the new package, run buildconf --force and then configure/make etc.  Note the configure option for instant client has changed:
    --with-oci8=instantclient,/usr/lib/oracle/10.2.0.3/client/lib
    -- cj

  • Php to generate numbers spreadsheet

    there is a pear package (http://pear.php.net/package/SpreadsheetExcelWriter) that uses php to generate excel spreadsheets. could this be done with numbers? anyone have any idea what would have to change to use numbers instead of excel?

    that explains quite a bit, thanks.
    this could be worth my while though. i've never used numbers and rarely use excel. is anyone aware of any obvious reasons that using numbers for this purpose might be better?
    i have modified a version of the spreadsheet excel writer and making graphs is possible but very tedious and extremely limited, could it be that numbers make it easier to do this?
    also excel is tricky with the way it stores dates and some of it's formatting information, and a wild little conversion process as to take place to convert from mysql format to a format excel will display properly. maybe numbers might improve this?
    finally, the only way i've discovered to effectively upload information from an excel spreadsheet is to first export it to csv (mostly because of this date and formatting issues) then upload it. obviously it'd make more sense to an end-user not have to export a file to a different format. i was hoping numbers might be able to keep a consistent file format instead.
    like you said, the structure is not documented, so i doubt you'd know the answers here for sure. but do have any incline at all that any of these points would be improved by using numbers?
    thanks again for your time

  • PHP 5.3 screwed it all!

    Hi!
    I'd like to know how could I downgrade PHP and all of its relatives packages?
    I already read http://wiki.archlinux.org/index.php/Downgrade_packages and I found a 5.2.9 version of PHP but now php-apache so there's a lot of missing parts.
    Is there anybody who ran into the same troubles?
    Thanks a lot!
    PS: I can't change the non-working code since it's web apps such as wordpress and roundcube.

    tompouceuh wrote:
    tompouceuh wrote:
    Pierre wrote:Disable the deprecated warning in php.ini. They are just warning which ask you to update your code becaused t wont work with future versions of PHP.
    How the heck can I do this? Thanks!
    I did this and I'm still having those messages:
    Deprecated: Assigning the return value of new by reference is deprecated in /srv/http/utils/roundcube/program/lib/MDB2.php on line 392 Deprecated: Assigning the return value of new by reference is deprecated in /srv/http/utils/roundcube/program/lib/MDB2.php on line 2614 Deprecated: Assigning the return value of new by reference is deprecated in /srv/http/utils/roundcube/program/lib/PEAR.php on line 563 Deprecated: Assigning the return value of new by reference is deprecated in /srv/http/utils/roundcube/program/lib/PEAR.php on line 566 DSN (write):  NOT OK(MDB2 Error: connect failed)
    Check it out:
    http://pousli.net/mail/
    Damn it!
    There was functions in the code forcing to show them... So trouble "fixed".

Maybe you are looking for

  • How can I delete a phone line from my account

    I have two lines that recently passed the 2-year contract date.  I now live overseas and have no use for them, but I can't find a way to delete them online and I can't get any kind of live help via Live Chat or by Calling Verizon via Skype (which is

  • 'Easy Set-up' Option - Problem with edit canvas/windows - really need help!

    Hello Everyone. . . Have a problem that i really need help with, i have tried so many different things to sort this - but with no sucess. I usually work in High Definition and i have recently done a small project for someone in DV. When changing to w

  • Form personlization using WHEN-VALIDATE-RECORD to call PLSQL Package

    Hi I am writing a Form Personalization on master Item Form for New Records Only. Once Item Is defined and saved, it should Invoke the Custom Procedure to insert the same record in Custom Table. =========== Trigger Event - WHEN-VALIDATE-RECORD Trigger

  • Compaq mini 110

    compaq mini 110 is saying enter CURRENT password the code that comes up is CNU9354VZ1 please help, thanks

  • Delta from cube

    Hi, Is it possible to have delta load from cube. Erick.