From 13aef587a38d03c96823a7b658f1c3d663aabe07 Mon Sep 17 00:00:00 2001
From: Moll <Moll@mhknet.de>
Date: Mon, 04 Jul 2016 05:31:52 -0400
Subject: [PATCH] Set default env[PATH] and env[HOSTNAME] since it is cleared by default setting clear_env = yes in php-fpm

---
 remoting_client/examples/sites_database_user_update.php |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/remoting_client/examples/sites_database_user_update.php b/remoting_client/examples/sites_database_user_update.php
index 527920d..9ce5f7b 100644
--- a/remoting_client/examples/sites_database_user_update.php
+++ b/remoting_client/examples/sites_database_user_update.php
@@ -1,16 +1,16 @@
 <?php
 
-require('soap_config.php');
+require 'soap_config.php';
 
 
 $client = new SoapClient(null, array('location' => $soap_location,
-                                     'uri'      => $soap_uri,
-									 'trace' => 1,
-									 'exceptions' => 1));
+		'uri'      => $soap_uri,
+		'trace' => 1,
+		'exceptions' => 1));
 
 
 try {
-	if($session_id = $client->login($username,$password)) {
+	if($session_id = $client->login($username, $password)) {
 		echo 'Logged successfull. Session ID:'.$session_id.'<br />';
 	}
 
@@ -24,16 +24,16 @@
 
 	//* Change password of the database user
 	$database_user_record['database_password'] = 'abcde';
-	
+
 	$affected_rows = $client->sites_database_user_update($session_id, $client_id, $database_user_id, $database_user_record);
 
 	echo "Number of records that have been changed in the database: ".$affected_rows."<br>";
-	
+
 	if($client->logout($session_id)) {
 		echo 'Logged out.<br />';
 	}
-	
-	
+
+
 } catch (SoapFault $e) {
 	echo $client->__getLastResponse();
 	die('SOAP Error: '.$e->getMessage());

--
Gitblit v1.9.1