Hello,
I'm trying to read a csv file uploaded to a directory (which has the appropriate rights). Before I continue writing code, I want to make sure the file is being read so I'm first seeing if I can print the contents. I'm using the following script in a custom code located in the onLoad event:
However, all that happens is the browser goes blank. Once I can get the file opened an put into an array I can manipulate the data. Unfortunately, I can't get past step one. Can you offer some suggestions?
Thanks for your help.
Chris
I'm trying to read a csv file uploaded to a directory (which has the appropriate rights). Before I continue writing code, I want to make sure the file is being read so I'm first seeing if I can print the contents. I'm using the following script in a custom code located in the onLoad event:
<?php
$file = fopen("/temp/personnel.csv","r");
while(! feof($file))
{
echo "<br>" . (fgetcsv($file));
}
fclose($file);
?>
However, all that happens is the browser goes blank. Once I can get the file opened an put into an array I can manipulate the data. Unfortunately, I can't get past step one. Can you offer some suggestions?
Thanks for your help.
Chris