SHARE
TWEET

Untitled

a guest Feb 27th, 2020 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (version_compare(PHP_VERSION, '5.1.2', '>=')) {
  2.     //SPL autoloading was introduced in PHP 5.1.2
  3.     if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
  4.         spl_autoload_register('PHPMailerAutoload', true, true);
  5.     } else {
  6.         spl_autoload_register('PHPMailerAutoload');
  7.     }
  8. } else {
  9.     /**
  10.      * Fall back to traditional autoload for old PHP versions
  11.      * @param string $classname The name of the class to load
  12.      */
  13.     function __autoload($classname)
  14.     {
  15.         PHPMailerAutoload($classname);
  16.     }
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top