Running Multiple PHP files

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Ree
Forum Regular
Posts: 592
Joined: Fri Jun 10, 2005 1:43 am
Location: LT

Running Multiple PHP files

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

eval() is evil. :twisted:

simply include_once() each after using glob() maybe.
Ree
Forum Regular
Posts: 592
Joined: Fri Jun 10, 2005 1:43 am
Location: LT

Post by Ree »

nah, that's all for myself only, so not that evil :wink:

and yeah that glob() is pretty good stuff
Post Reply