Re: $this->propertyValues['is_active'] shouldn't that be rather an overridable method?

Matthias Nothhaft <[email protected]> Tue, 30 Aug 2005 08:58:59 +0200
Newsgroups gmane.comp.php.pear.liveuser
Message-ID <[email protected]>
Lukas Kahwe Smith schrieb:
> 
> btw: i have done the is_readable() change in my local copy and will test
> it a bit.
You could also add an is_file() before the is_readable() check.
It is more informative than file_exists() if you want to check if it is
a file that exists :-)

I'm using a nice 'hack' to check if a file is 'includable':

function is_includable($file)
{
    // 3rd param = 'use_include_path'
    $f = @fopen($file, 'rb', true);
    $result = ($f) ? true : false;
    @fclose($f);
    return $result;
}

I'm not shure since when the 3rd parameter of fopen() is available in
PHP but I guess it is also a bit faster than your LU::fileExists() ...?


Regards,
Matthias

> 
> regards,
> Lukas
> 
> 
> _______________________________________________
> LiveUser mailing list
> [email protected]
> http://mailman.21st-hq.de/mailman/listinfo/liveuser
>