Ejemplo n.º 1
0
    $_SESSION['password'] = "";
}
if (!isset($_SESSION['wsdl'])) {
    $_SESSION['wsdl'] = $DEFAULT_WSDL;
}
if (!isset($_SESSION['inputfile'])) {
    $_SESSION['inputfile'] = "";
}
if (!isset($_SESSION['template-op'])) {
    $_SESSION['template-op'] = "";
}
if (!isset($_SESSION['template-object'])) {
    $_SESSION['template-object'] = "";
}
if (!isset($_SESSION['service_url'])) {
    $_SESSION['service_url'] = ZuoraAPIHelper::getSoapAddress($baseDir . $_SESSION['wsdl']);
}
if (!isset($_SESSION['object-count'])) {
    $_SESSION['object-count'] = "50";
}
#################################
function execInBackground($cmd)
{
    if (substr(php_uname(), 0, 7) == "Windows") {
        //pclose(popen("start /B ". $cmd, "r"));
        //exec($cmd);
        //$WshShell = new COM("WScript.Shell");
        //$oExec = $WshShell->Run($cmd, 0, false);
        pclose(popen("start \"bla\" " . $cmd, "r"));
    } else {
        exec($cmd . " > /dev/null &");
Ejemplo n.º 2
0
 public static function getAPIVersion($wsdl)
 {
     $address = ZuoraAPIHelper::getSoapAddress($wsdl);
     #Expecting: https://apisandbox.zuora.com/apps/services/a/8.0
     return substr(strrchr($address, "/"), 1);
 }