how to check file exist in extension folder

i try to used php file_exists to check if file is exist or not in protected/extension.

but it can’t give result because the folder is protected.

i wonder how to check file exists in protected/extension folder?

thanks.

You might find this extension very helpful:

http://www.yiiframework.com/extension/cfile

thanks for your suggestion.

i wonder is there any yii function to check file exist.

i mean without using an extension.

http://us.php.net/manual/en/function.file-exists.php