Page 1 of 1

Running Multiple PHP files

Posted: Wed Sep 07, 2005 2:25 am
by Ree
I have a bunch of PHP files in a directory which only 'do things', that is, they do not output anything to browser. Is there a way to run all of them one by one from a single script? Otherwise I'll have to put all of them in a single script... which I'd like to avoid.

Maybe reading each of the files and eval'ing?

Posted: Wed Sep 07, 2005 2:30 am
by feyd
eval() is evil. :twisted:

simply include_once() each after using glob() maybe.

Posted: Wed Sep 07, 2005 2:33 am
by Ree
nah, that's all for myself only, so not that evil :wink:

and yeah that glob() is pretty good stuff