Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $username = 'rmr';
- $password = 'pass';
- $soap_location = 'https://ip:8080/remote/index.php';
- $soap_uri = 'https://ip:8080/remote/';
- $client = new SoapClient(null, array('location' => $soap_location, 'uri' => $soap_uri));
- try {
- //* Login to the remote server
- if($session_id = $client->login($username,$password)) {
- echo 'Logged into remote server successfully. The SessionID is '.$session_id.'';
- }
- //* Logout
- if($client->logout($session_id)) {
- echo "FTP Created";
- }
- } catch (SoapFault $e) {
- die('SOAP Error: '.$e->getMessage());
- echo "Please contact the server administator";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement