Nice script!
But I encountered a problem. This didn't work for me:
PHP Code:
$ch = curl_init($sc_host . '/admin.cgi?mode=viewxml&sid=$sc_sid');
So I changed it to:
PHP Code:
$ch = curl_init($sc_host . '/admin.cgi?sid=' . $sc_sid . '&mode=viewxml');
I wonder why no one else had this problem.