1
I’m trying to count the number of lines a file . csv but giving error
Fatal error: Maximum Execution time of 30 Seconds exceeded in.
<?php
ini_set('max_execution_time', 300);
class Teste{
public function contarLinhas($arquivo){
$linhas = 0;
if($f = fopen($arquivo, "r" )){
while (!feof($f)) {
$linhas += 1;
}
}
return $linhas;
}
}
?>
which error is occurring?
– rLinhares
Fatal error: Maximum Execution time of 30 Seconds exceeded in
– user71502
already tried set_time_limit(-1); ?
– Diego Braga