The second page on the curl cant open because I try to fetch big file. When the proccess in first page finish, second page opens. How can I solve that without using curl_multi_exec. upload.php:
$curl = curl_init('http://example.com/upload.php');
$curlopt[CURLOPT_SSL_VERIFYHOST] = true;
$curlopt[CURLOPT_POST] = true;
$curlopt[CURLOPT_RETURNTRANSFER] = true;
$curlopt[CURLOPT_POSTFIELDS] = array('myfile'=>'@'.$u->file);
$curlopt[CURLOPT_INFILESIZE] = (string)filesize($u->file);
$curlopt[CURLOPT_INFILE] = fopen($u->file,'r');
curl_setopt_array($curl,$curlopt);
curl_exec($curl);
curl_close($curl);