PHP Classes

How to use?

Recommend this page to a friend!

      PHP SEPA XML Class  >  All threads  >  How to use?  >  (Un) Subscribe thread alerts  
Subject:How to use?
Summary:Error on testing
Messages:3
Author:Peter Pan
Date:2013-08-19 13:46:30
Update:2014-02-03 14:26:45
 

  1. How to use?   Reply   Report abuse  
Picture of Peter Pan Peter Pan - 2013-08-19 13:46:30
Any Doku? Tried to start "test.php",
got "Failed opening required 'SEPA\SepaXmlFile.php'"

Greetz

  2. Re: How to use?   Reply   Report abuse  
Picture of Rene Nieuwburg Rene Nieuwburg - 2014-02-03 13:55:38 - In reply to message 1 from Peter Pan
Try moving SepaXmlFile.php to the SEPA folder. May be it was wrongly placed in the zip file?

  3. Re: How to use?   Reply   Report abuse  
Picture of Rene Nieuwburg Rene Nieuwburg - 2014-02-03 14:26:45 - In reply to message 1 from Peter Pan
No, I think we have a problem here that has to do with the differences between Windows and Linux/Unix. In Unix you don't use backslashes in paths, that's why the autoload function won't work. Here is my correction for Linux/Unix users:

function __autoload($fileName) {
$fileName = str_replace("\\","/",$fileName);
require_once $fileName . '.php';
}