I have a directory on windows server with many text file like this:
[login to view URL]
[login to view URL]
[login to view URL]
[login to view URL]
[login to view URL]
each file create for each day and as you can see name of the file is like dates.
inside of each file I have some lines like:
Date Message
08:17:33 06-01-2015 ONLINE-Detcon H2 #1 High ,CG01-H ,06/01/15, 08:17
08:17:33 06-01-2015 Detcon H2 #2 High ,CG02-H ,06/01/15, 08:17
08:17:33 06-01-2015 Detcon H2 #3 High ,CG03-H ,06/01/15, 08:17
08:17:33 06-01-2015 OFFLINE-PK102 Pressure Low, PT09-L, 06/01/15, 08:17
08:25:38 06-01-2015 PK101Suction Low, PT04-L, 06/01/15, 08:25
08:25:41 06-01-2015 PK101Suction Low, PT04-L, 06/01/15, 08:25
08:29:14 06-01-2015 PK102 Suction Low, PT09-L, 06/01/15, 08:29
08:35:58 06-01-2015 PK102 Suction High, PT09-H, 06/01/15, 08:35
08:52:57 06-01-2015 ESD System Active from PLC, 06/01/15, 08:52
08:52:58 06-01-2015 External ESD Event Relay Active, 06/01/15, 08:52
08:52:58 06-01-2015 ONLINE-PK102 Suction Low, PT09-L, 06/01/15, 08:52
I want to have a PHP code to show the last status of data ONLINE/OFFLINE until next available status. I need to show ONLINE/OFFLINE status as image in html page.
Hello. I understand the requirements perfectly (find the last status and show that using an image on a webpage). I am available to start immediately. Please contact me for further discussion.