ah ha, worked it out. i have PHP version 5.4 on my local computer, V5.3 on the webserver i use, arrays are handled differently between 5.4 and 5.3, in 5.3 arrays are handled like this
in version 5.4 they are only handled like this and above throws an error.
PHP:
$cam_list=[
1 => '192.168.1.xxx',
2 => '192.168.1.xxx',
];
in version 5.4 they are only handled like this and above throws an error.
PHP:
$cam_list=array(
1 => '192.168.1.xxx',
2 => '192.168.1.xxx',
);