This is my code:
<?php
$file = fopen('Lista_responsaveis.csv', 'r');
$i=0;
while (($line = fgetcsv($file)) !== FALSE)
{
$responsavel[$i]=$line[0];
$i++;
}
fclose($file);
unset($responsavel[0]);
foreach ($responsavel as $item)
{
echo '</br>';
include("email_gerente_conta.php");
}
?>
And it works very well in my browser : http://174.30.255.100:88/call_email_gerente_conta.php
but if i do this in my cdm:
"C:\Program Files (x86)\iis\PHP\v5.6\php.exe" E:\site\call_email_gerente_conta.php
I get this error message: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 36 bytes) in E:\site\call_email_gerente_conta.php on line 8
I already tried increase memory to 128m, 512 and 1g, but still crashing, i'll avoid to use "-d memory_limit=-1", this error message refers to my loop, but i dont understant why this works fine on my browser and not in my cmd, and why a code quite simple and with a csv that has only 3 lines, need this much of memory Any help please