Hallo,hab mir den neuen swift-mailer geholt,und hab jetzt das problem,dass folgender error angezeigt wird:
Fatal error: Call to undefined function spl_autoload_register() in /usr/export/www/vhosts/funnetwork/hosting/dulling/lib/swift_required.php on line 47
Die datei swift_required.php sieht so aus:
<?php /*Autoloader and dependency injector for Swift Mailer. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . \*/ define('SWIFT\_CLASS\_DIRECTORY', dirname(\_\_FILE\_\_) . '/classes'); define('SWIFT\_MAP\_DIRECTORY', dirname(\_\_FILE\_\_) . '/dependency\_maps'); define('SWIFT\_CLASSPATH', SWIFT\_CLASS\_DIRECTORY); /\*\* \* Swift's autoload implementation. \* @param string $class \*/ function swift\_autoload($class) { if (substr($class, 0, 5) != 'Swift') { return; } foreach (explode(PATH\_SEPARATOR, SWIFT\_CLASSPATH) as $classPath) { $path = $classPath . '/' . str\_replace('\_', '/', $class) . '.php'; if (file\_exists($path)) { require\_once $path; } } } spl\_autoload\_register('swift\_autoload'); //Load in dependency maps require\_once SWIFT\_MAP\_DIRECTORY . '/cache\_deps.php'; require\_once SWIFT\_MAP\_DIRECTORY . '/mime\_deps.php'; require\_once SWIFT\_MAP\_DIRECTORY . '/transport\_deps.php'; //Load in global library preferences require\_once dirname(\_\_FILE\_\_) . '/preferences.php'; die line 47 ist diese: spl\_autoload\_register('swift\_autoload'); was muss ich tun,damit es funktioniert?? (PS: Mein webspace ist bei funpic.de)