The line in your foreach loop in example2.php should be this:
echo "The contents of {$filea['name']}:\n{$filea['data']}\n\n";
NOT this:
echo "The contents of {$filea['name']}:\n{$file['data']}\n\n";
This one little character stops the script from showing the file contents.
Just thought I'd let you know.
-Stephen
litlurl.net/