PHP filename Process in bulk

Status
Not open for further replies.

jimboone

New member
Nov 24, 2007
205
2
0
48
Just having an problem trying to process more then one file at a time.

Code:
<?php

$filename = 'index.php';

eval "Processing file: $filename... ";
I have tried to use it like this,
Code:
<?php

$filename = 'index.php';
$filename2 = 'index2.php';

eval "Processing file: $filename, $filename2... ";
but no luck, would love to have it do all files i have rather then input one at a time.

thanks in advance.
 


Thanks!
Works great

next step is to find a way to skip the files that have been done,

Code:
filename is index.php
[COLOR=red][B]not valid file type skip...[/B][/COLOR]

Thanks again argh01.
 
Code:
<?php

$files=array (
'index.php',
'index2.php' );

$files = array_unique($files);

foreach ( $files as $filename ) {
  eval "processing file: $filename\n";
}
 
Status
Not open for further replies.