[PHP] checking if module exists
I want my script to compress the output using gzip library. But before that, I want to check if gzip library is enabled before calling the compression functions... How do I do that? jun -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Fw: [PHP] checking if module exists
Write a test script and run it on the target server. If it crashes, it's not enabled. - Original Message - From: Jun [EMAIL PROTECTED] To: Sent: Wednesday, February 26, 2003 7:38 AM Subject: [PHP] checking if module exists I want my script to compress the output using gzip library. But before that, I want to check if gzip library is enabled before calling the compression functions... How do I do that? jun -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] checking if module exists
I want my script to compress the output using gzip library. But before that, I want to check if gzip library is enabled before calling the compression functions... How do I do that? You can try extension_loaded(); Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] checking if module exists
function_exists() -- checks if a function exists Jun wrote: I want my script to compress the output using gzip library. But before that, I want to check if gzip library is enabled before calling the compression functions... How do I do that? jun -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] checking if module exists
another please... not a good idea on production use. Rick Emery [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Write a test script and run it on the target server. If it crashes, it's not enabled. - Original Message - From: Jun [EMAIL PROTECTED] To: Sent: Wednesday, February 26, 2003 7:38 AM Subject: [PHP] checking if module exists I want my script to compress the output using gzip library. But before that, I want to check if gzip library is enabled before calling the compression functions... How do I do that? jun -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] checking if module exists
thank you chris and marek.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php