I installed php5-cli package on my raspbian (debian OS) and I downloaded [phpseclib](http://phpseclib.sourceforge.net/rsa/intro.html) in /cli/ directory.
I created a test file to encrypt text with a public key (generated within my apache server on which I have the same library) in this way:

```

    include('libs/Crypt/RSA.php');
    $rsa = new Crypt_RSA();
    $rsa->loadKey($myPublicKey);
    $encrypted = $rsa->encrypt("my text");
    echo "result: " .$encrypted;

```

If I try to type *php test.php* the `result` variable is empty. Why? It's due to the fact I execute the file from terminal e with php5-cli instead of php5 ?
How Can I obtain the result of this encrypting operation?
Thanks.