koeksGHT
Dealer
- Joined
- Aug 5, 2011
- Messages
- 11,857
This looks very easy ie straightforward, just want to confirm when this actually happens.
Ie at the moment on my index page I have that code of mine as a php include so everytime a visitor lands on the page it will do this:
So when does the put it into a dB happen and how does the percentage changed gets displayed?
Although I guess the percentage changed can be added in the dB as well.
Thinking of this now a cron job seems perfect for this if the cron job updates the dB every 10 minutes and then visitors gets displayed the latest dB entries.
Am I looking at it correctly?
About it, websites should only pull info from a local db so page generation times can be kept to micro seconds, anything that takes execution time(server resources/long response time) should be back end/automated.
Parcelcheck(one of my first projects) basically ran a cron against peoples inputted tracking number/email and would store response/check if updated and send email.


