- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.php
More file actions
Latest commit
37 lines (24 loc) · 676 Bytes
/
Copy pathexample.php
File metadata and controls
37 lines (24 loc) · 676 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
36
37
<?php
include'./vanfunction.php';
//Put Database as TXT
$path = "database.datastore";
$data = "Data 1
Data 2
Data 3
Data 4";
isi_database($path,$data)
//Output : Function will create database.datastore and store data : data 1|Data 2|Data 3|Data 4|||||||
//To Get Database you must have Search Key
//Example in database has
/*
admin|admingeming26|26|woman|||||||||
user|telkomdso|26|woman|||||||||
guest|123|unknown|custom|||||||||
*/
//To get Admin data You must have searchkey
//example
$path = "//pathtotdatabase";
$searchkey = "admin";
ambil_database($path,$searchkey);
//Output will be: Array('admin','admngeming26,'26','woman');
?>