Completed

Simple PHP script

I need a php script that will output a table from reading all the files in a specified directory and create a table of the filename, the contents (which will be an integer between 0 and 100) and the mod time on the file like so

filename <td> integer [ contents of the file ] <td> mod time <

When the integer is 0 the color of the bgcolor should be light red

when the integer is <= 2 the color of the bgcolor should be a light yellow

when the integer is > 2 the color of the bgcolor should be a light green

when any of the rows are clicked on in this table, the script needs to call itself again and rewrite the file specified by the row that was clicked on, decrementing the integer that was in the file by 1 and redisplaying the table. When a file has the contents of "0" the script should not perform any actions

This should be a single standalone script creating a table. It will be called from within an iframe of another page which already has its own css.

The following variables should be declared at the top of the php script

path to the directory

font in use for the table

bgcolor for integer = 0

bgcolor for integer <= 2

bgcolor for integer > 2

Example output would look like this

test1 100 2019-02-01 10:19:02

test2 10 2019-03-01 10:29:12

test3 13 2019-04-01 11:39:32

test4 19 2019-05-01 12:49:22

If the user clicked on the row representing test1 the contents of test1 would be altered to "99" and the table would be redisplayed as below

test1 99 2019-06-01 01:10:02

test2 10 2019-03-01 10:29:12

test3 13 2019-04-01 11:39:32

test4 19 2019-05-01 12:49:22

Skills: HTML, Javascript, MySQL, PHP, Software Architecture

See more: php code examples, structure of php, php tags, php code in html, php script example, php examples with source code, php programming examples for beginners, simple php template, sign upsign login simple php script, simple php script button, simple php script grab text, simple php script cloak affiliate links listed, simple php script create basic combo box, simple php script send friend, simple php script mysql signup admin delete entry, simple php script send email csv, simple php script emulate browser, microblog simple php script, simple php script different content, simple php script read wordpress

About the Employer:
( 3 reviews ) Plano, United States

Project ID: #19875182

Awarded to:

bluebear1888

How do you do? I am a creditist. I'm very happy to have a chance of bidding your project. I have read carefully the descriptions and understood clearly what you want. I have experience in development of the project More

$25 USD in 1 day
(31 Reviews)
4.8

15 freelancers are bidding on average $35 for this job

polarjin2017

Hello? Nice to meet you. I am excited to work with you on this project. I am ready to start work immediately. Here are my working result for php, mysql, api integration, ajax, jquery etc. [login to view URL] More

$30 USD in 1 day
(131 Reviews)
7.0
adampohp79

Hi. thanks for your posting. I'm very happy to have a chance of bidding your project. I have experience in development of the projects like yours If you hire me, I'll do my best for your project and finish greatly in a More

$30 USD in 7 days
(54 Reviews)
6.1
alexwmsoft

100% Completion Rate and 5 Stars Hi, there. My name is Lee, and I am an experienced web developer. I read your job description, and I am interested in your project. I have 6+ years of experiences in developing More

$25 USD in 1 day
(32 Reviews)
6.1
xinglong717

Hi Dear. I have read your description carefully and am very interesting in your project. I can start right now and can do it perfectly. If you hire me, I will do my best for your job and you can get the best results. L More

$20 USD in 7 days
(69 Reviews)
5.7
navneetsoni

Hi, Recently, we completed a project for the client, which is also related to your project. I am 4 years experienced in the PHP Development, Wordpress Development, Woocommecre Development. I am also experience More

$40 USD in 1 day
(52 Reviews)
5.9
phamv4n

!!!!!!!!!!!!!!!!!!!I can do this perfectly for you!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!I can do this perfectly for you!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!I can do this perfectly for you!!!!!!!!!!!!!!!!!! More

$30 USD in 1 day
(18 Reviews)
5.4
AndreiVldmrvch

Hello client. I read carefully your proposal. I am a professional web and full stack developer. * No Upfront-Amount needed to Begin your Project * Ready to Start as Immediate, Unlimited Revisions & Proper Testing * Ke More

$50 USD in 1 day
(18 Reviews)
5.4
BestService222

Hi,How are you? I am available to do your project and very interested. I feel very confident about your project because of your required task actually map on my skill sets As I am a professional Expert, I can do you More

$25 USD in 1 day
(18 Reviews)
4.9
whiteeagle0001

Hi Thanks for the opportunity to place bid on this project. I have rich experience in your project. I can help you surely and complete in a short time. I can start your project immediately. I will wait for the g More

$100 USD in 1 day
(15 Reviews)
4.2
eroos101

Hello, I saw you were looking for a freelancer who could make a simple PHP script for you. I can do this for you! I'm a developer who has experience making PHP scripts. For example, here's something that I made with PH More

$30 USD in 1 day
(5 Reviews)
2.9
MobileKing1225

★★Hello★★ [I READ YOUR JOB DESCRIPTION CAREFULLY] And then I've very interesting about your project. I've rich experience in web development with Laravel, PHP, HTML, javascript and developed many Business, e-Commerce, More

$50 USD in 1 day
(4 Reviews)
2.5
EliteMobile330

Hello, Nice to meet you. I just checked your job description carefully and I am very interested in your job now. I have been developing WEB applications (front-end & back-end) for over 6 years and have accomplishe More

$30 USD in 1 day
(5 Reviews)
2.6
techlinesols6

Hi, "I have gone through your description. Please ping me in person. I can help you to complete all tasks. I and my team have hands-on experience in this field. We have already done similar types of [login to view URL] w More

$27 USD in 7 days
(3 Reviews)
0.0
dukeroy11

Hello Sir, I read the project description properly. I am very much interested to work on this job. I am able to complete this project within 24 hours. Please let me know if you have any inquiries. Thanks, Duke Roy

$18 USD in 1 day
(0 Reviews)
0.0