my script shows the folloing warning:
"PHP Warning: fgetcsv() expects parameter 1 to be resource, boolean given in"
the line:
while ( ($data = fgetcsv($arquivo,0,';') ) !== FALSE ) {
I've got a test environment with PHP Version 5.4.45 the works perfectly, but in production environment with PHP Version 5.6.29-0+deb8u1 it doesn´t work.