/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function require_once_dir( $path ){ while(($file = $dir->read()) !== false) require_once($path .'/'. $file); $dir->close(); } #Example require_once_dir( 'lib/db' ); require_once_dir( 'lib/email' );