Closed

php execute cron then display changes to log file

This project received 6 bids from talented freelancers with an average bid price of $12 USD / hour.

Get free quotes for a project like this
Employer working
Project Budget
$8 - $15 USD / hour
Total Bids
6
Project Description

Need a small php script.
1 'Execute' button.
1 text area.
1 table - 5 columns, 4 rows. Fixed width table ( 500 px ), columns equal widths. Height minimum possible to still display the text content. Thin line grey border. Cells to contain sequential numbers ( 1 to 20), Arial, 9pt bold, Black, centered vertically and horizontally.

User will Click the Button to execute a cron ( which runs an existing php script #2 ).
While php script #2 is running, it will add progress entries to a [url removed, login to view] file ( same path ).

Every 6 seconds :....
Read the last modified date / time of the log file.
If the date / time has not changed for a preset period ( eg 5 minutes ) then terminate the script and stop the checking / reading loop.
If the date / time has changed since the last read, read the text from the log file and update the text area. You can use a count of the lines in the file to identify the new text to be added to the textarea. The existing content of the log file is never changed - only new lines of progress are added to the end of the log file.
The new log text should be added to the existing text in the textarea, so it does not refresh and lose the vertical scroll position.
If the vertical scroll position is at the bottom of the textarea, then scroll to the bottom of the textarea. If the vertical scroll is not at the very botton, then do not auto-scroll to the bottom ( user may be looking at something in the textarea ).
If the log text contains the text 'Function001 completed' then change the background colour of cell 1 to bright green. Repeat for function001 to function 020.
Below the text area, display the date / time of the start of the script running, then the date / time of the last log file modification, then the time ( in hours, minutes and seconds ) difference between the 2 readings.

My script runs on a shared server, and no configuration changes can be made to the server or php on the server.
I am not able / allowed to give the coder access to the server, so I will have to do testing and feedback results to the coder.

Please specify in your reply : ...
1. the hours you expect coding to take.
2. confirm that this number of hours will be the total hours that will be charged / paid for.
3. specify the methodology you would use to achieve the textarea updates from the log file.

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online