forked from vrana/php-async
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreadme.txt
More file actions
35 lines (19 loc) · 722 Bytes
/
readme.txt
File metadata and controls
35 lines (19 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
MysqliAsync - Convenient API for asynchronous queries in PHP 5.3+
CurlAsync - Convenient API for asynchronous HTTP connections using CURL in PHP 5+
MysqliAsync API:
$db = new MysqliAsync([$host, [$username, [$passwd, [$dbname, [$port, [$socket]]]]]])
- specify default credentials
$db->$name($query, [$credentials])
- execute query
- $credentials are merged with defaults
$mysqli_result = $db->$name()
- get results of query identified by $name
CurlAsync API:
$http = new CurlAsync
$http->$name($url)
- execute request
$string = $http->$name()
- get result of request identified by $name
Czech articles:
http://php.vrana.cz/asynchronni-dotazy-v-mysqli.php
http://php.vrana.cz/asynchronni-dotazy-v-curl.php