Grid Tutorial 08
Event Home
Programme
Registration
Participants
Flyer
RC-RUG
SARA
Surfnet
Nikhef
GridForum NL
EGEE
|
Participants Grid Tutorial 2008
$file = "$csvfile";
if ( file_exists($file) ) {
#chmod($file,0664);
$handle = fopen($file,"r");
$i=1;
echo " \n";
echo " | Name | Affiliation | ";
while (!feof($handle) ) {
$arrData=fgets($handle,4096);
$csvArr=explode(";",$arrData);
if ( $csvArr[0] == "\"datum\"" ) continue;
if ( $csvArr[0] == "" ) continue;
$ncsvArr=Array();
foreach ( $csvArr as $k => $v ) {
$ncsvArr[$k] = substr($v,1,strlen($v)-2);
}
echo "| ".$i++." | ";
echo "" . htmlentities($ncsvArr[2]) . " " . htmlentities($ncsvArr[3]) . " | ";
echo "" . htmlentities($ncsvArr[4]) . " | ";
echo " \n";
}
echo " \n";
fclose($handle);
} else {
$fh=fopen("$file","a");
fclose($fh);
echo "CSV List $file Not Found\n";
}
?>
Comments to .
|