PHP in 3.x?
  • I have this code in my old 2.x template.

    How I must rewrite this to work in 3.x?
    For curious one.. this is must for flash security tweak.
    I already try with new syntax.. {{ php }} & {{ /php }}

    __________
    // turn off NOTICE error reporting
    $ext="http://feeds.bbc.co.uk/serbian/index.xml";
    error_reporting (E_ALL ^ E_NOTICE);
    if (function_exists('curl_init')) {
    $ch = curl_init($ext);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
    echo curl_exec($ch);
    curl_close($ch);
    }
    else {
    readfile($ext);
    }
    ?>