In my app, I am checking for cURL.
if (!dl('php_curl.dll') && !dl('curl.so')) {
// cURL not installed :-(
} else {
// cURL installed! YAY!
}
This loads the curl lib for *nix and windows. if both fail, curl support isn't installed. However, on multithreaded servers, this would give:
PHP Warning: dl(): Not supported in
multithreaded Web servers - use
extension=php_curl.dll
Fine. Then how do I check if curl is installed and /or active?
I found $_ENV["NUMBER_OF_PROCESSORS"] is "2" on his machine. Is multiprocessor the same as multithread?
How can the app test if he has uncommented extension=php_curl.dll in his php.in?