Ok. to the best of my ability i'll give ya the requirements ;-) First: this is for a unix based os e.g. linux. Essentially i know perl but not c & would like to kill the startup overhead of perl for this particular program. Program logic is as follows: 1) A url (e.g. [login to view URL]) calls the program (in this case [login to view URL]) 2) If a session long cookie containing the referring url has not yet been set, it sets the cookie. We want the program to also serve up a page and replace template variables (e.g. %%var1%% would be replace with "a" in this case) with variables from the query string. The program should count the initial arrival of the visitor (1st page click aka raw visitor) and the second page click (aka unique visitor)... if the site contained 5 pages, the program needs to handle the raw/uniques & referral url's no matter which page the surfer initially arrives at. Finally, the program appends to (and creates if not existing) a flat text log file... writing the query string contents to the file as pipe delimited text on a new line(e.g. a|b|c|1|2|3). One log file for unique visits(aka 2nd page clicks) and one log file for raw visits (aka 1st page clicks). File locking must be implemented to prevent corruption. Now that i've thoroughly confused you, please bid ;-)) Successful and timely completion of this project will most likely result in additional private bid requests.
## Deliverables
Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased.
## Platform
linux & apache... most recent stable kernel of linux and most recent production release of apache.
## Deadline information
Changes to this program are welcome if you have a better idea (e.g. write it as an apache module rather than a standard executable etc)