
January 11th, 2000, 05:45 PM
|
|
Junior Member
|
|
Join Date: Dec 1999
Posts: 15
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
this is one way ..
I think ..
$path="/path/from/root/specifieddir";
$string = "sfd";
$d = dir("$path");
$i=0;
while($entry=$d->read()) {
if($f=str_replace($string,"",$entry){
$i++;
}
}
print "$i dirs or files in $path contained $string";
[This message has been edited by kvack (edited January 11, 2000).]
|