I use curl inside loop and use flush output buffering data.
Below code in Safari it is fine, but when I test in Chrome and Opera the flush output buffering data works,
but if the printed data contain anchor tag that can't be click, and also under same domain the browser can't visit.
Does anyone know why and how to solve it?
Edit:
1. I did check browser debugger the anchor tag already print.
2. The same browser another window still can visit other domain/website, only freeze under this domain, seems need to wait all loaded or quit the application.
3. Same time user another browser visit same domain it is fine.
ob_implicit_flush(true);
ob_end_flush();
foreach ($data as $eachData) {
// curl
foreach (.. as ..) {
// curl
// ouput data
echo '<a href="..">link</a>';
}
}
ob_flush();
flush();
sleep(1);