Help with special character escaping < >

[php]

<? if(isset($_GET['key']) && $_GET['key']=='SOME_FANCY_KEY' && isset($_GET['list'])) { $list = $_GET['list']; $players = explode(',',$list); array_shift($players); file_put_contents('online.json', json_encode($players)); } ?>

[/php]

So I keep getting the error Special characters must be escaped for < and > on the first line and list line. How do I fix this? any help would be appreciated

Dont use the short open tag.

<? should be <?php
Sponsor our Newsletter | Privacy Policy | Terms of Service