Parent Directory | Revision Log
check exits and then if file
1 | <? |
2 | |
3 | function find_html_file($dir,$file) { |
4 | $file="./$dir/$file"; |
5 | if (file_exists("$file") && is_file("$file")) { return "$file"; } |
6 | if (file_exists("$file.htm") && is_file("$file.htm")) { return "$file.htm"; } |
7 | if (file_exists("$file.html") && is_file("$file.html")) { return "$file.html"; } |
8 | return 0; |
9 | } |
10 | |
11 | ?> |
ViewVC Help | |
Powered by ViewVC 1.1.26 |