Category:IT/Web/Programming > Web Programming
ID:90207
Title:Parse HTML for calendar events and output an array in PHP
Location:Anywhere
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.
Type:Fixed Price
Budget:£40 - £150 (Approx $63 - $235)
Attached Files:
Sample_file_for_CBTH.htm
Bidding ends:Bidding Closed
Job Posted:03/09/2011 11:25
Stay safe: Read our safety guidelines before bidding
Bidding has ended for this project, the client has accepted the bid(s) below:
Accepted Bid #1Amount: $188 Fixed Fee
Country of Freelancer:
United Kingdom
Estimated Start Date: Within 1 Business Day
Amount: $235 Fixed Fee
Country of Freelancer:
United Kingdom
Estimated Start Date: Within 1 Business Day
If you are in doubt of the legitimacy of a Job and or Client, let us know by Reporting the Job.
For further support on preventing and reporting fraud please contact the UK’s National fraud reporting centre at http://www.actionfraud.org.uk/ or outside the UK Fraud Watchers at {fraudWatchers}