0) { if (file_exists($conversionFilePath)) { $conversionFileFound = True; break; } $sleepMsecs = 10; usleep($sleepMsecs * 1000); if (!$noTimeout) { $timeoutMsecs -= $sleepMsecs; } // file_exists() caches results, we want to invalidate the cache. clearstatcache(); } echo "\n"; if ($conversionFileFound) { echo "Attribution received."; $conversionFile = fopen($conversionFilePath, 'r'); while ($line = fgets($conversionFile)) { echo "
"; echo trim($line); } echo "
"; fclose($conversionFile); unlink($conversionFilePath); } else { echo "Attribution not received - timed out.
"; } if (isset($_GET['endTest'])) { echo ""; } echo ""; ?>