https://github.com/liyanboy74/php-data-logger
Logging HTTP requests into MySQL database
https://github.com/liyanboy74/php-data-logger
http loogin mysql-database php request
Last synced: 9 months ago
JSON representation
Logging HTTP requests into MySQL database
- Host: GitHub
- URL: https://github.com/liyanboy74/php-data-logger
- Owner: liyanboy74
- Created: 2020-10-09T14:09:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-09T03:11:04.000Z (over 4 years ago)
- Last Synced: 2025-05-20T18:19:45.166Z (11 months ago)
- Topics: http, loogin, mysql-database, php, request
- Language: PHP
- Homepage:
- Size: 37.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP Data logger
Logging http requests into MySQL database
That API can save any POST,GET,JSON & ...
you must have table named `log` Columns (`ID` ,`name` ,`data` ,`dateTime`)
Edit below lines in `api.php` for connect to MySQL database:
```PHP
$servername = "localhost" ;
$username = "USERNAME" ;
$password = "PASSWORD" ;
$dbname = "DB_NAME" ;
```