libs/sysplugins/smarty_internal_get_include_path.php Quellcode

smarty_internal_get_include_path.php
gehe zur Dokumentation dieser Datei
1 <?php
17 {
25  public static function getIncludePath($filepath)
26  {
27  static $_include_path = null;
28 
29  if (function_exists('stream_resolve_include_path')) {
30  // available since PHP 5.3.2
31  return stream_resolve_include_path($filepath);
32  }
33 
34  if ($_include_path === null) {
35  $_include_path = explode(PATH_SEPARATOR, get_include_path());
36  }
37 
38  foreach ($_include_path as $_path) {
39  if (file_exists($_path . DS . $filepath)) {
40  return $_path . DS . $filepath;
41  }
42  }
43 
44  return false;
45  }
46 }




Korrekturen, Hinweise und Ergänzungen

Bitte scheuen Sie sich nicht und melden Sie, was auf dieser Seite sachlich falsch oder irreführend ist, was ergänzt werden sollte, was fehlt usw. Dazu bitte oben aus dem Menü Seite den Eintrag Support Forum wählen. Es ist eine kostenlose Anmeldung erforderlich, um Anmerkungen zu posten. Unpassende Postings, Spam usw. werden kommentarlos entfernt.