Re: What are the require_ once and include_ once in PHP?
To include/require a whole folder of classes can be stripped down to a one-liner :
PHP Code:
<?php
array_walk(glob('./lib/*.class.php'),
create_function('$v,$i', 'return require_once($v);'));
?>
If you get "failed to open stream" although you are sure your include_path is correct, check your open_basedir setting.
I do to dead flowers what people at morgues do to dead people. Suck all the moisture out, dip them in plastic, paint them up pretty and put them in a nice frame.
Bookmarks