#!/usr/bin/php faultstring); } $phpwiki = getenv("HOME")."/.phpwiki"; if (!file_exists($phpwiki)) { $login = readline("Login: "); $password = readline("Password: "); $credentials = base64_encode($login.':'.$password); if ($fp = fopen($phpwiki, 'w')) { fprintf($fp, "%s:%s", $login, $password); fclose($fp); chmod($phpwiki, 0600); } } else { $credentials = base64_encode(file_get_contents($phpwiki)); } try { $plugins = $client->listPlugins($credentials); for ($i = 0; $i < count($plugins); $i++) { echo $plugins[$i]; echo "\n"; } } catch (SoapFault $e) { echo 'Error: ' . $e->getMessage() . "\n"; }