Curl within is time consuming and troublesome

0

I need to test all the user accounts of a db in text area I am utilizando o script

function informacoes(){
   $linhas = explode("\n", $_POST['conta']);
   $count = count($linhas) -1;

    for($i=0 ; $i<= $count; $i++) {
        $conta = explode("|", $linhas[$i]);

        $email = $conta[0];
        $senha = $conta[1];

        checker($email, $senha);
    }
}

Function checker:

function checker ($email, $senha) {
  // todo o sistema do curlopt esta aqui
  // exemplo
  if(strpos($data, 'Erro":false') !== false){
      echo "conta ativa";
  }
}

The problema is set to muito lerdo and does not work as expected. Another problema is also that only faz echo quando todas as contas já foram testadas

Analyze: If text area has only 1 account the script is done as expected.

    
asked by anonymous 01.04.2018 / 23:20

0 answers