PHP autoload function stops working -


i have php project. contains 'classes' folder , folder has php classes.

i set autoload function according manual: php manual , working well, until have renamed 3 classes , added 4 other classes 'classes' directory. after that, stopped working.

i have tried set full directory path, didn't help. if use require_one manually, works fine.

is possible, folder contain many php class file?

there code:

require_once './classes/requirement.php';  function allclass_autoloader($class) {     require_once 'classes/' . $class . '.php'; }  spl_autoload_register('allclass_autoloader');   $mysqli = sconnectionfactory::createconnection($server, $db_username, $db_password, $database);                 $selectuserquery = "select email, name, type, regist user"; 

and classes folder contains sconnectionfactory.php file.

i have run debug , put breakpoint allclass_autoloader function. $class variable sconnectionfactory value. $selectuserquery variable doesn't value. i'm little bit confused.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -