How do I execute multiple php files via command line?

link|improve this question
feedback

2 Answers

up vote 1 down vote accepted

Just call them one after each other:

a.php; b.php; c.php
link|improve this answer
4  
Just a quick note: With ;, all subsequent commands will execute when one failed. with "&&", further commands will only execute when the previous finished without error. – fab Apr 29 '11 at 15:18
feedback

Or if you don't want to type out all the names:

ls *.php | xargs -tn1 php

This being Unix, there are many (many) other ways to do this too.

link|improve this answer
Your name is pretty slick, but I might have added "Some Totally Random Guy". – Xeoncross Apr 29 '11 at 15:25
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.