Forum Moderators: coopster
Rather than comment out all the code references to tidy on one copy of the site, I'd like to keep it consistent and code in some test to see if tidy is enabled, kind of like checking for magic quotes with get_magic_quotes_gpc()==1.
Is there an easy PHP way to see if php_tidy.dll (or any other extension in php.ini, like mhash) is enabled?
[edited by: coopster at 3:57 pm (utc) on Mar. 3, 2008]
[edit reason] no edits made [/edit]
Is there a way to catch that error so the rest of the script continues and incorporate the error result in the logic? For example, something like this:
$tidy = new tidy;/* Concept of logic, not actual code
if (error) {
no
continue script
} else {
yes
}
*/
if ([url=http://uk.php.net/manual/en/function.function-exists.php]function_exists[/url](tidy)) {
$tidy = new tidy;
//
}
else {
echo 'This place is not tidy';
}
[edited by: PHP_Chimp at 2:59 pm (utc) on Mar. 2, 2008]