php - Unexpected T_Variable with SimpleXML -


i mistake

parse error: syntax error, unexpected '$xml2' (t_variable) in /users/craftamap/www/craft_cms/index.php on line 4 

by using code.

if (file_exists("xml/sites.xml")) {     $xml2 = simplexml_load_file("xml/sites.xml"); } 

i can't figure out mistake. file existing.

thank help.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -