Archived Forum Post

Index of archived forum posts

Question:

Problem with PHP Extension

Sep 04 '12 at 13:16

hi, i have a web site.. and i like to use chilkat php extension (as my hosting server is Linux) but the problem is as my hosting account is a shared hosting account, and my hosting server (hostmonster.com) does not support installing third party extension..

so, i m out of way.. :(

can any one tell me any way to use chilkat component on my website using php?

best regards


Accepted Answer

You might try dynamically loading the PHP extension from your script:

<?php
// Example loading an extension based on OS
if (!extension_loaded('chilkat_9_3_2')) {
        dl('chilkat_9_3_2.so');
}
?> 

I would recommend investigating PHP's "dl" function here: http://us3.php.net/dl