How can I only allow access to webpage at certain times of day?
<p>I am creating a website in which people order takeaways online. How can I only allow access to webpage at certain times of day? e.g. 5pm - 12pm etc...</p>

<p><strong>Update:</strong></p>

<p>I have figured out a solution which works with number of answers:</p>

<pre><code>&lt;?php
    if (date('G')&gt;17) {
        header('Location: /closed.php');
        exit();
    }
?&gt;
</code></pre>
