I have a small php script that looks like this :
<?php
$argument1 = $argv[1];
echo "passed Value:".$argument1;
//do something with passed value
//echo processed value
?>
I want to run it multiple times using cmd.
This is how I run it currently :
c:\php\php.exe MyScript.php 1
I want to run the above cmd line multiple times for different values ranging from 1 to 100.
Could anyone tell me how I can run it multiple times for different values passed to it?
Note:
I want to be able read the output of each php call and copy it