cvs: phpweb /include manual-lookup.inc
| From: | jim winstead | Date: | Mon, 11 Feb 2002 00:18:38 +0000 |
| Subject: | cvs: phpweb /include manual-lookup.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-8668@lists.php.net to get a copy of this message | ||
jimw Sun Feb 10 19:18:38 2002 EDT
Modified files:
/phpweb/include manual-lookup.inc
Log:
suppress file_exists errors. mirrors may be using that evil version that spit out errors when the
stat fails.
Index: phpweb/include/manual-lookup.inc
diff -u phpweb/include/manual-lookup.inc:1.9 phpweb/include/manual-lookup.inc:1.10
--- phpweb/include/manual-lookup.inc:1.9 Sat Sep 22 04:30:30 2001
+++ phpweb/include/manual-lookup.inc Sun Feb 10 19:18:37 2002
@@ -11,22 +11,22 @@
$func = ereg_replace('\(.*\)',"-",$func);
$try = "/manual/${cc}/${prefix}${func}.php";
- if (file_exists("$DOCUMENT_ROOT$try")) return $try;
+ if (@file_exists("$DOCUMENT_ROOT$try")) return $try;
$nosp = ereg_replace(" ", "", $func);
if ($nosp != $func) {
$try = "/manual/${cc}/${prefix}${nosp}.php";
- if (file_exists("$DOCUMENT_ROOT$try")) return $try;
+ if (@file_exists("$DOCUMENT_ROOT$try")) return $try;
}
$dasp = ereg_replace(" ", "-", $func);
if ($dasp != $func) {
$try = "/manual/${cc}/${prefix}${dasp}.php";
- if (file_exists("$DOCUMENT_ROOT$try")) return $try;
+ if (@file_exists("$DOCUMENT_ROOT$try")) return $try;
}
$noul = ereg_replace("-", "", $func);
if ($noul != $func) {
$try = "/manual/${cc}/${prefix}${noul}.php";
- if (file_exists("$DOCUMENT_ROOT$try")) return $try;
+ if (@file_exists("$DOCUMENT_ROOT$try")) return $try;
}
return "";
}