Browse Source

Update README.md

Maurits van der Schee 10 years ago
parent
commit
a1ec1317bc
1 changed files with 9 additions and 3 deletions
  1. 9
    3
      README.md

+ 9
- 3
README.md View File

@@ -51,14 +51,20 @@ These are all the configuration options and their default values:
51 51
 
52 52
 ```
53 53
 $api = new MySQL_CRUD_API(array(
54
-	'hostname'=>null,
55
-	'port=>null,
56
-	'socket=>null,
57 54
 	'username=>'root'
58 55
 	'password=>null,
59 56
 	'database:'',
60 57
 	'whitelist=>false,
61 58
 	'blacklist=>false,
59
+// for connectivity
60
+	'hostname'=>null,
61
+	'port=>null,
62
+	'socket=>null,
63
+// added for unit testing
64
+	'method'=>$_SERVER['REQUEST_METHOD'],
65
+	'request'=>$_SERVER['PATH_INFO'],
66
+	'get'=>$_GET,
67
+	'post'=>'php://input',
62 68
 ));
63 69
 $api->executeCommand();
64 70
 ```

Loading…
Cancel
Save