I'm going to buy a (cheap) hosting space with apache/php 5/mysql. Because it's cheap i have no direct control over php.ini and extension loading.
My question is: can i load an extension putting the .dll file into my space and than using dl() php function? Can the host disable this feature thus avoid loading custom extension this way?
extension_loaded()function works as I assume it does from reading the docs, you could attempt to load the extension usingdl()and then check that it has become available usingif (!extension_loaded([EXTENSION])) { echo "Failed to load extension"; exit(); }and then you'll be able to prevent your code working if it doesn't load. Just an aside.