-
Notifications
You must be signed in to change notification settings - Fork 2
/
storeins.php
41 lines (28 loc) · 813 Bytes
/
storeins.php
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
36
37
38
39
40
41
<?php
include_once("C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/arc/ARC2.php");
/* ARC2 static class inclusion */
/* configuration */
$config = array(
/* db */
'db_host' => 'localhost', /* optional, default is localhost */
'db_name' => 'arc',
'db_user' => 'elgg',
'db_pwd' => '',
/* store name */
'store_name' => 'arc_store',
/* endpoint */
'endpoint_features' => array(
'select', 'construct', 'ask', 'describe',
'load', 'insert', 'delete',
'dump' /* dump is a special command for streaming SPOG export */
),
'endpoint_timeout' => 60, /* not implemented in ARC2 preview */
);
/* instantiation */
$ep = ARC2::getStoreEndpoint($config);
if (!$ep->isSetUp()) {
$ep->setUp(); /* create MySQL tables */
}
/* request handling */
$ep->go();
?>