(PHP Extension) LastErrorText
How to get RSA debugging information. If any RSA method returns a failed status, check the contents of the LastErrorText string property. Send it to support@chilkatsoft.com if you need further help.
<?php
// The version number (9_5_0) should match version of the Chilkat extension used, omitting the micro-version number.
// For example, if using Chilkat v9.5.0.48, then include as shown here:
include("chilkat_9_5_0.php");
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
$rsa = new CkRsa();
$success = $rsa->GenerateKey(1024);
if ($success != true) {
// The LastErrorText provides detailed information about
// any failure. It is standard to all Chilkat components.
// This is good information to send to support@chilkatsoft.com
print $rsa->lastErrorText() . "\n";
exit;
}
?>
|