-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
31 lines (19 loc) · 819 Bytes
/
Copy pathconfig.php
File metadata and controls
31 lines (19 loc) · 819 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
<?php
define('DB_HOST', $_SERVER['SERVER_NAME']);
define('DB_NAME', 'gsm_api');
define('DB_USER', 'root');
define('DB_PWD', '');
define('API_ADDRESS', $_SERVER['SERVER_NAME'].'/api/'); // api | GSM_API is name of your directory in public_html
/*
You can set your directory name as "api" or "GSM_API"
[Fetch New Messages]
http://localhost/api/gsm_api.php?action=fetch_new
[Fetch All Messages]
http://localhost/api/gsm_api.php?action=fetch_all
[Send Message - Insert Data to DB]
http://localhost/api/gsm_api.php?action=insert&name=FAWAD&mobile=03001234567&message=Welcome&status=0
[Update Message Status - Insert Data to DB]
http://localhost/api/gsm_api.php?action=update&id=1&status=0
[Delete Message / Del Record from DB]
http://localhost/api/gsm_api.php?action=delete&id=2
*/