Count number of files containing certain string

From: Date: Thu, 01 Jan 1970 02:24:16 +0000
Subject: Count number of files containing certain string
Groups: php.general 
Request: Send a blank email to php-general+get-111417@lists.php.net to get a copy of this message
I'm trying to piece together readdir() with some other code that will let me count the number of files in a directory that match a defined string. For example, how many files in "/dir" contain the string "slides"? I need the resulting number to use in a Javascript slideshow... Any ideas? Thanks. --- René Fournier, rene@smartslitters.com Toll-free +1.888.886.2754 Tel +1.403.291.3601 Fax +1.403.250.5228 www.smartslitters.com SmartSlitters International #33, 1339 - 40th Ave NE Calgary AB T2E 8N6 Canada

« previous php.general (#111417) next »