/[pliva-si]/inc/find_html_file.inc
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /inc/find_html_file.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations)
Mon Jul 9 08:48:55 2001 UTC (22 years, 9 months ago) by dpavlin
Branch: MAIN
Changes since 1.1: +1 -1 lines
use full path if no dir argument

1 <?
2
3 function find_html_file($dir,$file) {
4 if ($dir!="") $file="./$dir/$file";
5 if (is_file("$file") && file_exists("$file")) { return "$file"; }
6 if (is_file("$file.htm") && file_exists("$file.htm")) { return "$file.htm"; }
7 if (is_file("$file.html") && file_exists("$file.html")) { return "$file.html"; }
8 return 0;
9 }
10
11 ?>

  ViewVC Help
Powered by ViewVC 1.1.26