Need a little insight into having to decode information from a CSV file, where the last field was encoded to Base64
<?php
$fh = fopen("file.csv", "r");
while (list($field1, $field2, $field3, $field4, $field5, $field6) = fgetcsv($fh, 1024, "\t"))
{
echo '<tr>
<td width=16%>'.$field1.'</td>
<td width=16% align=center>'.$field2.'</td>
<td width=16% align=center>'.$field3.'</td>
<td width=16%>'.$field4.'</td>
<td width=16% align=center>'.$field5.'</td>
<td width=16%>'.$field6.'</td>
</tr>';
}
?>
the following is in the CSV as Tab Delimited
157242812 0 255 Mon Sep 22 18:26:48 PDT 2008 410 AAAAAgAAAAEAAAAEAAAACwAAAZoAAAAAAEEAQQBBAEEAQQBBAEEAQQAAAAAAAAAAAAAAAAAAAAA=
157271757 0 255 Thu Sep 18 17:17:16 PDT 2008 563 AAAAAwAAAAEAAAACAAAACQAAAjMAAAAAACkATQAoACAAIAAgACAAIAAAAAAAAAAAAAAAAAAAAAA=
157093377 0 255 Fri Aug 29 19:16:41 PDT 2008 641 AAAAAwAAAAAAAAAKAAAAEAAAAoEAAAAAACgAKQAnACAAIAAgACAAIAAAAAAAAAAAAAAAAAAAAAA=
Basically, $field6 is the Base64 encoded information (dont freak, the encoded information was done in Japanese - so if you do attempt to decode, it'll come out as weird characters)
where would I put this piece of code:
base64_decode($field6);
So that I can list what $field6 says?
Thanks ahead of time for your help.