note 85289 added to language.oop5.autoload

From: Date: Sat, 23 Aug 2008 23:09:25 +0000
Subject: note 85289 added to language.oop5.autoload
Groups: php.notes 
Request: Send a blank email to php-notes+get-143777@lists.php.net to get a copy of this message
When __autoload doesn't seem to work or if you are in PHP 4: <?php $include_paths = explode( PATH_SEPARATOR , get_include_path() ); foreach( $include_paths as $path ) { if( is_dir( $path ) ) { $d = opendir( $path ); while (false !== ($f = readdir($d))) { if( ereg( "^.*\.php$" , $f ) && strstr( $path , ABS_PATH ) ) { ## avoid PEAR and other files for automatic requirement require_once $f; } } closedir($d); } } // replace ABS_PATH with your app root ?> ---- Server IP: 201.216.232.3 Probable Submitter: 190.19.16.57 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.autoload.php Edit -- https://master.php.net/note/edit/85289 Del: integrated -- https://master.php.net/note/delete/85289/integrated Del: useless -- https://master.php.net/note/delete/85289/useless Del: bad code -- https://master.php.net/note/delete/85289/bad+code Del: spam -- https://master.php.net/note/delete/85289/spam Del: non-english -- https://master.php.net/note/delete/85289/non-english Del: in docs -- https://master.php.net/note/delete/85289/in+docs Del: other reasons-- https://master.php.net/note/delete/85289 Reject -- https://master.php.net/note/reject/85289 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#143777) next »