I have a PHP page that I use to perform some tasks. This page reloads every minute. Along with this page it works in conjunction with two other pages and a database. The other two pages display results based upon the main page.
I am trying to move these pages/database (application) from my main business server to another server (since it would crash my server while I was developing).
I moved everything over to the new host (same host, aiso.net, new plan), and all appeared to be functioning well. The two display pages connected with the database and worked well. However, the main page that reloads is generating an error:
Parse error: syntax error, unexpected '>'
The part of the page causing the error is this:
usort($NewArray, function($a, $b) {
return $a['volume'] <=> $b['volume'];
});
I checked to ensure that all the PHP settings are the same between the two hosting plans.
I can't figure out why the <=> operator works fine on one host, but on the other host (with the same settings), that operator causes an error.