Your job is to add the fetch page functionality to an existing php uptime monitor script for all existing ports it checks. If a particular port does not need a fetch page functionality another functionality in addition to socket check that supports that port should be used instead.
If the target page redirects to another page, the script should follow the redirect and perform a fetch page request on the new (redirected to) page, but only if the redirected to page is on the same top level domain as the old (originally targeted) page.
It should work with www. and without www (and in case of redirect to www.). It can fetch headers or page tags, whatever is more reliable in determining that the page is up.
If the new page is not on the same top level domain as the old page, then return the status of the old page as "off-line (down)".
The functionality should return either that the page is off-line (down) or that the page is online (up). Only working solutions which work within the existing script as well as the system and server will be accepted and paid for. Solutions that only work on their own and not within the existing script will be rejected.
cURL solution has been implemented before and it was painfully slow, therefore some other solution is needed.
If anything is unclear please don't hesitate to ask.
**IMPORTANT:** Please quote "pineapple" for your bid to be considered. Server logins and ftp logins are not available on this project - only select files to work on will be attached here, not the entire script. The employer will upload the changed files to the website. You will be however given full access to the members area of the site to test the code.
**The deadline will be extended each time for 3 days IF there is significant progress observed from the worker in the first (and successive) 3 days.**
PLEASE, only workers with a significant number of successfully finished projects involving PHP should bid. I do not wish to waste time on someone without experience.
This is only a small part of a large project. Performing a great job will render you steady flow of work.
Thank you.
Bo