This is a simple set of php functions any good php programmer can do.
I am a certified software engineer (27 years experience) and could do this in 1 day, but do not have time to do this work.
I need it done quickly.
the functions are called ShowCount and Trakcount
The primary purpose of these functions is to track the number of people placing orders and display how many have ordered - and to 'quit' taking orders when the limit number is reached, and display a designated secondary web page (html or php) instead.
Need TWO FUNCTIONS:
trakcount -- will be included and run by the [url removed, login to view] script we already use. The path/name of the count limit file will be passed as a parameter.
trakcount will check the number in the count limit file, then decrement it by 1, and store the new number in the file. IF the decrement results in a zero value in the count file, return a 'false' to the calling script
showcount -- will be used inside of an html page as an include. It will read the count limit file - the count limit file name/path is passed as a parameter - and display the current count inside the html file.
IF the count has reached zero, showcount will INSTEAD, redirect and display/load a php or html web page, which is passed as a second parameter to the proc-function.
These functions or procedures will be used INSIDE existing php and html I have.
************ THE FILES AND DIRECTORIES
1- trakcount php -- the php function file executed to decrement the number
2- showcount php -- the php function or proc executed to display the count in the html page
3- countfile dat -- some file with a .dat extension used as the count file.
DO INCLUDE simple error checks, for conditons such as files not existing, and handle them.
******** DELIVERY TO ME
I need this done quickly. The deliverables will include:
1-- Complete and fully-functional working program scripts on our server, in source code readable format, with EXTENSIVE comments and explanations.
2-- All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer.
3-- the resulting system will be EXCLUSIVE our property and NOT used for other projects by bidder, unless they are projects done for us.