· 8 years ago · Aug 26, 2018, 04:56 PM
1Logging System from txt file to database
2<?php
3 shell_exec("php process.php > /dev/null 2>&1 &");
4 shell_exec("php process.php > /dev/null 2>&1 &");
5 shell_exec("php process.php > /dev/null 2>&1 &");
6 shell_exec("php process.php > /dev/null 2>&1 &");
7?>
8
9-----------------------------------------
10Process ID: 123
11- Loggin In
12- Logged OK
13- Checking xxxx (xxxxx)
14- Sending Info
15- Received xxxx 25252525
16- Completed
17------------------------------------------
18Process ID: 123
19- Loggin In
20- Logged OK
21- Checking xxxx (xxxxx)
22- Sending Info
23- Received xxxx 23424
24- Completed
25------------------------------------------
26Process ID: 123
27- Loggin In
28- Logged OK
29- Checking xxxx (xxxxx)
30- FAIL
31------------------------------------------
32
33CREATE TABLE IF NOT EXISTS `log` (
34 `log_id` int(11) NOT NULL AUTO_INCREMENT,
35 `process_id` int(11) NOT NULL,
36 `process_date` datetime NOT NULL,
37 `log_output` varchar(200) NOT NULL,
38 `log_time` datetime NOT NULL,
39 PRIMARY KEY (`log_id`)
40) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;