Hello,
I'm trying to read csv files from a folder via script.
via browser it shows me the correct values of the array, however via CLI it presents me with an empty array. Follow the code
$files = glob('*.csv');
var_dump($files);
Output via browser:
array(2) { [0]=> string(22) "Perdas\Score_Gauss.csv" [1]=> string(16) "Perdas\teste.csv" }
Output via CLI:
array(0){}
Any idea why this might be happening?