Hello all,
I have this code which currently reads 1 .txt file in a folder. How can I modify it so that it gets information from *.txt files in the folder?
$data_file = @$argv[1];
if (empty($data_file))
{
die("\nUsage: {$argv[0]} path/to/data/file.txt\n\n");
}
$db = getDb();
//
$fd = fopen($data_file, 'r');
I appreciate any help anyone is willing to offer. I am new at this, so please go easy on me.