RE: [PHP] autoload issues
| From: | Joakim Ling | Date: | Tue, 27 May 2008 09:03:42 +0000 |
| Subject: | RE: [PHP] autoload issues | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-274721@lists.php.net to get a copy of this message | ||
Hi
I'm using Ioncoder, the structure for the classes is that I have a "master"
library folder in every client root containing all classes, but
unfortunately the filename is not the same as the classname (some files are
but not all) so no luck matching classes with filenames.
The code I use to scan the files are:
$rows = file_get_contents($path);
if (preg_match('#^(?:abstract |final )?class (\S+) #m', $rows, $m)) {
...
}
The files just looks totally scrambled when they are encoded, so this is not
working at all obviously.
regards
-----Original Message-----
From: Bojan Tesanovic [mailto:btesanovic@gmail.com]
Sent: 24 May 2008 01:33 PM
To: PHP General list
Subject: Re: [PHP] autoload issues
Can you be more specific, the structure of directories what encoder
did you use can you provide a sample
PHP encoded class/script ...
On May 23, 2008, at 5:27 PM, Joakim Ling wrote:
> Anyone have a solution for using autoload with encoded php files?
Bojan Tesanovic
http://www.carster.us/