PHP: check if a PEAR class is installed
You can’t use file_exists because it doesn’t search the include path.
fopen has a third argument that will check the include path, though:
if (@fopen('Log.php', 'r', true))
{
echo 'It exists!';
}
You can’t use file_exists because it doesn’t search the include path.
fopen has a third argument that will check the include path, though:
if (@fopen('Log.php', 'r', true))
{
echo 'It exists!';
}