Back to all jobs

Parse HTML for calendar events and output an array in PHP  Add to shortlist

Client Details

TomTom B   
United Kingdom  United Kingdom
  • Member Since: Sep 2011
  • Last Login: 3 Oct 2011
  • PPH Verified: Yes
  • Jobs Posted: 1
  • Jobs Awarded: 2
  • Paid out: $423

Job Details

Category:IT/Web/Programming > Web Programming

ID:90207

Title:Parse HTML for calendar events and output an array in PHP

Location:Anywhere

Job Description

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.

Job Budget

Type:Fixed Price

Budget:£40 - £150 (Approx $63 - $235)

Additional Information

Attached Files:
Sample_file_for_CBTH.htm

Bidding ends:Bidding Closed

Job Posted:03/09/2011 11:25

Bidding activity on this Job

Bids:5

Who has Bid:


View 2 more bids

Clarification Board

G. S.G. S. on 02/09/2011 18:35
Hello Tom
you are looking for UK guy or any chance for remote working

Thanks
R. P.R. P. on 02/09/2011 18:43
Hi Tom,

Any chance you could upload the source of the html file that you're parsing?

Regards,
Ryan

Reply from Client

T. B.T. B. on 02/09/2011 19:10
Hi Ryan

File eventually uploaded, this project has not become urgent, I just paid in the hope that the file upload would be moderated quicker.

All the best

Tom
N. D.N. D. on 02/09/2011 19:01
sir i am from india,i think i can help you in this project.can you share it with me ?
D. H.D. H. on 02/09/2011 19:48
Hi Tom,

As my fellow freelancer requested, if you could upload the ammended HTML file that you would like the provider to work with that would be most appreciated.

I look forward to seeing the file once your plane has landed!

Many thanks and kind regards,

Dave

Reply from Client

T. B.T. B. on 02/09/2011 22:46
Landed file uploaded
D. H.D. H. on 02/09/2011 23:36
Hi Tom,

I just rechecked the project and it still reads as no files attached.

I'm about to sign off for the night now but I'll check again in the morning.

Many thanks,

Dave

Reply from Client

T. B.T. B. on 05/09/2011 10:12
Hi Dave

File eventually uploaded, this project has not become urgent, I just paid in the hope that the file upload would be moderated quicker.

All the best

Tom
T. B.T. B. on 03/09/2011 00:19
Hi
I uploaded the file and some more info tonight. I guess it has to be moderated.

All the best

Tom
T. B.T. B. on 03/09/2011 00:22
Hi G S

I am after a UK coder.

All the best

Tom

Bidding closed

Stay safe: Read our safety guidelines before bidding

Bidding has ended for this project, the client has accepted the bid(s) below:

Accepted Bid #1

Amount: $188 Fixed Fee

Country of Freelancer: United Kingdom  United Kingdom

Estimated Start Date: Within 1 Business Day




Accepted Bid #2

Amount: $235 Fixed Fee

Country of Freelancer: United Kingdom  United Kingdom

Estimated Start Date: Within 1 Business Day





Here are some practical tips on staying safe


Remember: if something looks too good to be true, it probably is!

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}