note 46840 rejected from language.oop5.autoload by nlopess

From: Date: Tue, 26 Oct 2004 14:42:01 +0000
Subject: note 46840 rejected from language.oop5.autoload by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-79124@lists.php.net to get a copy of this message
Note Submitter: vigacmoe at gmail dot com ---- it's weird that __auotload() won't load files in different directories, which obviously make more sense. I got a "failed to open stream" error when trying to do so. <?php function __autoload($class) { require_once('../' . $class . '.php'); } ?> above code just does't work.

« previous php.notes (#79124) next »