I have a directory with 163 files. I'd like to go through and process all
files with the word rost in them.
I'd like to go through each of these files and go line by line to enter the
data into a mySQL table.
An example of the file would look like this:
http://hyrum.net/wwbl/HTML/watrost.htm
on 7/7/01 9:02 PM, Jeff Lewis at [EMAIL PROTECTED] wrote:
I have a directory with 163 files. I'd like to go through and process all
files with the word rost in them.
Are these files named in any logical way? ie. 01.htm
02.htm etc.
Do you have a list of the files someplace? I'm not certain
ahh here is what you need:
$d = dir(/etc);
while($entry=$d-read()) {
echo $entry.br\n;
//put what you want to do to each thing in the dir here...
}
$d-close();
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
on 7/7/01 7:02 PM, Jeff Lewis at [EMAIL PROTECTED] wrote:
So I need to know how to process the files in the directory and then how to
process a few lines. The structure will always be the same and having the
columns starting at the same position each time.
first, do the files have all the
on 7/7/01 7:38 PM, mike cullerton at [EMAIL PROTECTED] wrote:
on 7/7/01 7:02 PM, Jeff Lewis at [EMAIL PROTECTED] wrote:
So I need to know how to process the files in the directory and then how to
process a few lines. The structure will always be the same and having the
columns starting at
5 matches
Mail list logo