Posted by Toby A Inkster on 04/18/07 16:06
FFMG wrote:
> Toby A Inkster;60885 Wrote:
>> FFMG wrote:
>>
>> > Why is file_exists(...) alone not a good option.
>> > How would you check if a file exists for inclusion.
>>
>> include_path
>
> no.
> Doesn't always work.
Well, if you may want to check it's readable, as permissions may prevent
PHP from reading the file. You could also run "php -l" on the sile using
system() to check for syntax errors in the file first.
--
Toby A Inkster BSc (Hons) ARCS
http://tobyinkster.co.uk/
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux
* = I'm getting there!
[Back to original message]
|