Chilkat is a powerfull library for developers. I would never think PHP without Chilkat and even desktop applications or mobile apps.
Chilkat provides many libraries for developers to handle most of them easily. From E-Mail to RSA, RAR to TAR, Compression and Encryption, Certificate, DSA, File Access and many more. Please take a look its own homepage.
You have to buy Chilkat because its not free. (unfortunately) But i admit that, it deserves every penny.
If you already have chilkat and licensed, just install on server and tryout this extension.
After installing this extension, Chilkat libraries will be automatically included When needed/called.
Requirements ¶
Yii 1.1 and later is required to use.
Chilkat 9.3.0 need to be installed on the system.
Now with v9.3.1 support.
Usage ¶
- Export EChilkatLibrary.php into the extension dir.
- Export Chilkat folder to the vendors dir.
- Use this schema and update your main.php config file.
'components'=>array(
'chilkat' => array(
'class'=>'ext.EChilkatLibrary'
),
),
...
'preload'=>array('log', 'chilkat'), // and etx...
This extension requires Chilkat library (php files). You may download Chilkat's its own classes but its single file only and about 450 KB. Which is not flexible. I just split all of them and renamed every classes. This extension only works with my custom vendor folder/lib.
Resources ¶
- Homepage: http://www.chilkatsoft.com
- Examples: http://www.example-code.com/phpExt/default.asp
- References: http://www.chilkatsoft.com/refdoc/phpExt.asp
PHP Error[2]: include(CkCert.php): failed to open stream: No such file or directory
Hi.
I'm testing your extension but couldn't make it to work.
When i try to do
$cert = new CkCert();
It fails with
PHP Error[2]: include(CkCert.php): failed to open stream: No such file or directory
Any help?
TIA!
RE: PHP Error[2]: include(CkCert.php): failed to open stream: No such file or directory Hi.
Have you add the extension path correctly? Please replace the function inside of EChilkatLibrary.php and see what happen.
public function init() { echo "IT IS WORKING!"; Yii::registerAutoloader(array("EChilkatLibrary", "loadLibrary")); //It has to be required once: require_once (self::$basePath.'Chilkat/SYSTEMTIME.php'); } static function loadLibrary($className){ echo "CALLED: ".$className; foreach(self::$prefixes as $prefix){ if(strpos($className, $prefix)!==false){ if(!self::$basePath) self::$basePath = Yii::getPathOfAlias("application.vendors").'/'; echo "FILE IS SEARCHED IN ".self::$basePath.'Chilkat/'.$className.'.php'; require_once( self::$basePath.'Chilkat/'.$className.'.php' ); return class_exists($className, false) || interface_exists($className, false); } } return false; }
Please do this to determine where the error is located.
RE: RE: PHP Error[2]: include(CkCert.php): failed to open stream: No such file or directory Hi.
Hi!
I've just finished to make it work.
It was, as usual, a case of bad typing and the Chilkat .so that wasn't loading.
It is an impressive library, I didn't heard of it until today.
It saves me a lot of work with certificates.
Thank you very much for making it available to Yii.
Regards!
RE: RE: RE: PHP Error[2]: include(CkCert.php): failed to open stream: No such file or directory Hi.
Glad to hear that its worked. And im glad to hear that you found this helpful. I also uploaded new version of Chilkat Library v9.3.1
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.