Just simply create a file called _require.php in your library where u want to load all php files from and paste this:
Now go to your index.php and add after <?php this:
Now every file in the directory functions/ will be loaded.
Lg
Code:
<?php
$handle = opendir(dirname(__FILE__));
while (false !== ($file = readdir($handle))) {
if (preg_match("=^\.{1,2}$=", $file)) {
continue;
}
if($file!="_require.php") {
require ($file);
}
}
closedir($handle);
?>
Code:
include("functions/_require.php");
Lg