When I run this script on my local server it works just fine. However when I run it on a hostgator server I get this error:
Parse error: syntax error, unexpected '[' in /home/user/public_html/parsing/parse.php on line 46
Line 46 is this: $rows = [];
Any idea why this could be happening? Thank you. By the way I have only copied up to line 46, there are a few more lines of code than shown here.
$rows = [];
to$rows = array();
– Mic1780 Aug 29 '14 at 0:13