How to delay for 5 sec and then use file_get_contents PHP?
<p>How to delay for 5 sec and then use <code>file_get_contents</code> PHP ?</p>

<p>I use this code for get text from webpage using url.</p>

<p>index.php</p>

<pre><code>&lt;?PHP
$text = file_get_contents('https://www.othersite.com/test_1.php');
echo strip_tags($text); // If you only need text not html structure
?&gt;
</code></pre>

<p>.</p>

<p>.</p>

<p><a href="https://www.othersite.com/test_1.php" rel="nofollow noreferrer">https://www.othersite.com/test_1.php</a></p>

<pre><code>&lt;meta http-equiv="refresh" content="5;url=https://www.othersite.com/test_2.php"&gt;
</code></pre>

<p><a href="https://www.othersite.com/test_2.php" rel="nofollow noreferrer">https://www.othersite.com/test_2.php</a></p>

<pre><code>HELLO WORLD.
</code></pre>

<p>When i load mysite (index.php). how to delay for 5 sec then use <code>file_get_contents</code> and it's will show result <code>HELLO WORLD.</code></p>