
Parse HTML for calendar events and output an array in PHP
5386
£150(approx. $199)
- Posted:
- Proposals: 4
- Remote
- #90207
- Archived
Description
Experience Level: Expert
I have developed a website that converts an electronic work schedule into calendar events and then sends then to a smart phone. This is not my full time job and therefore I need a PHP MySQL programmer to help.
This job is to repeat a bit of code that I have written and see how a proffesional programmer would do it, I need the code to be well documented so I can understand what is going on. The job is to take an HTML file and parse it extracting time and date information and other related details and construct a PHP array of thye output. I would then incorporate it in my web app. If this works out I will need continued help as I expand the user base.
I need someone I can talk to about the project who will give me ideas about improving my spagetti code.
I would supply some sample HTML pages and the requirements of the output array, and you would produce a PHP file that is well commented and does the job better than my code.
I do not know how long it would take an experienced coder but I guess less than eight hours.
Added Info 2 Sept 2011 pm
I have been requested to upload a sample file to parse, a great idea (why didn't i think of it)
The file I have uploaded contains all the relevat data, I have modified it so that names are removed and replaced by the string "Name" in a real file these would be different names all associated with the tree letter code to their left.
As a sample file is uploaded I will be more specific it the data that needs to be extracted.
Above each table are codes and dates eg ALOL-(756) 01.04.11 etc this needs to be in an array similar to this
Short Long Start Date End Date All Day Event
ALOL-(765) ALO LHS B757 and B767 1.4.2011 True
Each day a duty or duties are performed
BDO Base Day Off 6.Apr 2010 True
Then timed events
9th April
ci 05:05
6518 752 FO BRS PMI 06:05 08:30
I : FLX [OP]
T : DDU
··· 6519 752 FO PMI BRS 09:30 11:55
I : FLX [OP]
T : DDU
Would create three entries
ci Report 9th Apr 2011 05:05 9th Apr 2011 06:05 False
6518 752 FO BRS PMI 9th Apr 2011 06:05 9th Apr 2011 08:30 False FLX[OP] Final Line Check Operating T:DDU
6519 752 FO PMI BRS 9th Apr 2011 09:30 9th Apr 2011 11:55 False FLX[OP] Final Line Check Operating T:DDU
Then an all day event for Notes
9.4 Fri 6518 6519 : (AAJ) Name (DDU) Name (MKZ) Name (AAK) Name (MZG) Name (XHQ) Name (CXW) Name (ZFP) Name -- L/ck by Trng Capt NameAAJ --
The decoding of the accronims will be by looking up a CSV file
This is not a precise spec but I hope it gets the idea of what is involved across.
One person commented that it should be no prob as I would suppy code that I have already done, the purpose of this for me is to see how you would code it, so I will not supply my own code.
This job is to repeat a bit of code that I have written and see how a proffesional programmer would do it, I need the code to be well documented so I can understand what is going on. The job is to take an HTML file and parse it extracting time and date information and other related details and construct a PHP array of thye output. I would then incorporate it in my web app. If this works out I will need continued help as I expand the user base.
I need someone I can talk to about the project who will give me ideas about improving my spagetti code.
I would supply some sample HTML pages and the requirements of the output array, and you would produce a PHP file that is well commented and does the job better than my code.
I do not know how long it would take an experienced coder but I guess less than eight hours.
Added Info 2 Sept 2011 pm
I have been requested to upload a sample file to parse, a great idea (why didn't i think of it)
The file I have uploaded contains all the relevat data, I have modified it so that names are removed and replaced by the string "Name" in a real file these would be different names all associated with the tree letter code to their left.
As a sample file is uploaded I will be more specific it the data that needs to be extracted.
Above each table are codes and dates eg ALOL-(756) 01.04.11 etc this needs to be in an array similar to this
Short Long Start Date End Date All Day Event
ALOL-(765) ALO LHS B757 and B767 1.4.2011 True
Each day a duty or duties are performed
BDO Base Day Off 6.Apr 2010 True
Then timed events
9th April
ci 05:05
6518 752 FO BRS PMI 06:05 08:30
I : FLX [OP]
T : DDU
··· 6519 752 FO PMI BRS 09:30 11:55
I : FLX [OP]
T : DDU
Would create three entries
ci Report 9th Apr 2011 05:05 9th Apr 2011 06:05 False
6518 752 FO BRS PMI 9th Apr 2011 06:05 9th Apr 2011 08:30 False FLX[OP] Final Line Check Operating T:DDU
6519 752 FO PMI BRS 9th Apr 2011 09:30 9th Apr 2011 11:55 False FLX[OP] Final Line Check Operating T:DDU
Then an all day event for Notes
9.4 Fri 6518 6519 : (AAJ) Name (DDU) Name (MKZ) Name (AAK) Name (MZG) Name (XHQ) Name (CXW) Name (ZFP) Name -- L/ck by Trng Capt NameAAJ --
The decoding of the accronims will be by looking up a CSV file
This is not a precise spec but I hope it gets the idea of what is involved across.
One person commented that it should be no prob as I would suppy code that I have already done, the purpose of this for me is to see how you would code it, so I will not supply my own code.
Tom B.
0% (0)Projects Completed
1
Freelancers worked with
2
Projects awarded
100%
Last project
16 Sep 2011
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies