' . $err . ''; // At this point, you know the call that follows will fail } $response = array(); if (!empty($_POST['function'])) { $response = $client->call($_POST['function']); echo '
#'; print_r($response); echo '#'; } $list = scandir($serversys); $scripts = array(); foreach ($list as $item) { if (substr($item,0,1) == '.') { continue; } if (substr($item,-8)=='soap.php') { $scripts[] = $item; } } ?>