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
 
51
 
52
 ```
52
 ```
53
 $api = new MySQL_CRUD_API(array(
53
 $api = new MySQL_CRUD_API(array(
54
-	'hostname'=>null,
55
-	'port=>null,
56
-	'socket=>null,
57
 	'username=>'root'
54
 	'username=>'root'
58
 	'password=>null,
55
 	'password=>null,
59
 	'database:'',
56
 	'database:'',
60
 	'whitelist=>false,
57
 	'whitelist=>false,
61
 	'blacklist=>false,
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
 $api->executeCommand();
69
 $api->executeCommand();
64
 ```
70
 ```

Loading…
Cancel
Save