$end in script, I can't find the issue
<p>I'm having an issue with one of my scripts, the unexpected $end one. Interestingly, the script works on Linux fine, just not on windows. Here's the script.</p>

<pre><code>&lt;?php
$finding = $db-&gt;query_read("SELECT * FROM `servers` ORDER BY `id` ASC LIMIT 0, 30 ");
  while($row=mysqli_fetch_array($finding)){
      echo "&lt;tr class='alt2'&gt;";

      $whmusername = "root";
      $whmhash = $row['accesshash'];

      $query = "http://$row[ip]:2086/xml-api/loadavg";

      $curl = curl_init(); # Create Curl Object
      curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); 
      curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
      curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); 
      $header[0] = "Authorization: WHM $whmusername:" . preg_replace("'(\r|\n)'", "",
$whmhash); # Remove newlines from the hash
      curl_setopt($curl, CURLOPT_HTTPHEADER, $header); # Set curl header
      curl_setopt($curl, CURLOPT_URL, $query); # Set your URL
      $result = curl_exec($curl); # Execute Query, assign to $result
      if ($result == false) {
          error_log("curl_exec threw error \"" . curl_error($curl) . "\" for $query");
      }
      curl_close($curl);


      $root = new SimpleXMLElement($result);
      $loadavg = array((string) $root-&gt;one, 
             (string) $root-&gt;five, 
             (string) $root-&gt;fifteen);

      $query = "http://$row[ip]:2086/xml-api/listaccts";                
      $curl = curl_init(); # Create Curl Object
      curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
      curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
      curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
      $header[0] = "Authorization: WHM $whmusername:" . preg_replace("'(\r|\n)'", "",
$whmhash); # Remove newlines from the hash
      curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
      curl_setopt($curl, CURLOPT_URL, $query);
      $acct = curl_exec($curl);
      if ($acct == false) {
          error_log("curl_exec threw error \"" . curl_error($curl) . "\" for $query");
      }
      curl_close($curl);

      $acctcnt = new SimpleXMLElement($acct);   
      $acccount = count($acctcnt-&gt;acct);          

      $f1=$row['hostname'];
      $f2=$row['ip'];
      $f3="$loadavg[0]  $loadavg[1]  $loadavg[2]";
      $f4 = $acccount;

      ?&gt;
      &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/td&gt;
      &lt;td&gt;&lt;?php echo $f1; ?&gt;&lt;/td&gt;
      &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/td&gt;
      &lt;td&gt;&lt;?php echo $f2; ?&gt;&lt;/td&gt;
      &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/td&gt;
      &lt;td&gt;&lt;?php echo $f3; ?&gt;&lt;/td&gt;
      &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/td&gt;
      &lt;td&gt;&lt;?php echo $f4; ?&gt;&lt;/td&gt;
      &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/td&gt;
      &lt;td&gt;&lt;a href=&lt;?php echo "http://$row[ip]:2086"; ?&gt; class="button"           target="_blank"&gt;&amp;nbsp;WHM&amp;nbsp;&lt;/a&gt;&amp;nbsp;&lt;/td&gt;
      &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/td&gt;
 &lt;? }?&gt;
 &lt;/table&gt;
</code></pre>

<p>Any ideas on what I've missed out?</p>
