Hi all,
is there a decent way to check whether a file is available on the
include_path? The only soultion I have found is
if ( ( $fd = fopen( 'my_file', 'r', 1 ) ) ) {
fclose( $fd );
/* ok, file is there */
}
That one's not really nice, at it opens the file for reading.
It would be best to have the include_path switch for file_exists, just
as it works with fopen.
Can someone better my workaround above?
Cheers,
Ben
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]