Well if you are talking about using a text file to hold information about 20 products, I would make each line of the text file a record about a product delimited by a pipe
A cup|24.99|cup.jpg|This is a great cup
A plate|12.99|plate.jpg|This is a great plate
Then you can use the file command to read in the contents of the text file in to an array and you counld print a nice table with all your data:
<?php
$file = file("/www/prods.txt");
$count = count($file);
if ($count > 0) {
while (list ($key, $val) = each($file)) {
$prod = explode("|", $val);
print '<tr>';
for ($i=0;$i<count($prod);$i++) {
print '<td>'. $prod[$i] .'</td>';
}
print '</tr>';
}
}
else {
print "No products found";
}
?>