PHPMailerAutoload.php Quellcode

PHPMailerAutoload.php
gehe zur Dokumentation dieser Datei
1 <?php
24 function PHPMailerAutoload($classname)
25 {
26  //Can't use __DIR__ as it's only in PHP 5.3+
27  $filename = dirname(__FILE__).DIRECTORY_SEPARATOR.'class.'.strtolower($classname).'.php';
28  if (is_readable($filename)) {
29  require $filename;
30  }
31 }
32 
33 if (version_compare(PHP_VERSION, '5.1.2', '>=')) {
34  //SPL autoloading was introduced in PHP 5.1.2
35  if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
36  spl_autoload_register('PHPMailerAutoload', true, true);
37  } else {
38  spl_autoload_register('PHPMailerAutoload');
39  }
40 } else {
45  function __autoload($classname)
46  {
47  PHPMailerAutoload($classname);
48  }
49 }




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.