You get the current include path in PHP by using get_include_path()
I am wondering what is the lightweight way to check if the file can be included without issuing a PHP error. I am using Yii framework and I want to an import without issuing PHP error, but I fail.
Before PHP 5.3.2 you can split the path and check each path in a loop: