PHP script to show when a store is open
<p>I'm trying to build a PHP script so that when a store is opened it will show the words "is now open" and when it's closed it'll show "is now closed" based on timezone and hours. I can't seem to get this to work, I found this script but it doesn't work properly.. It should work on the dutch timezone.. +1 Amsterdam.. Can anyone aid me?</p>

<p>I'd appreciate the help!</p>

<p>SCRIPT:</p>

<pre><code>&lt;?php
$schedule[0] = "700-1730";
$schedule[1] = "700-1730";
$schedule[2] = "700-1730";
$schedule[3] = "700-1730";
$schedule[4] = "10:00-17:30";

$schedule[5] = "700-1300";
$schedule[6] = "0";

$today = $schedule[date('w')];

list($open, $close) = explode('-', $schedule);

$now = (int) date('Gi');

$state = 'is geopend.';

if ($today[0] == 0 || $now &lt; (int) $today[0] || $now &gt; (int) $today[1]) {
  $state = 'is gesloten.';
}
?&gt;
&lt;?php echo $state;?&gt;
</code></pre>