Reply
Thu 16 Nov, 2006 10:08 am
Hello everyone
I'll put my problem in short....
A script is developed to send online orders placed by the clients on daily basis to the owner of the company. The script is developed in PHP. & its funtion is to write a new CSV file daily, picking the orders placed in last 24hrs DAILY.
CROn time is set at 2:00pm. So when the time reached at 2:00pm. it triggers and execute the code and a CSV file is send to the owner.
Problem:
Yesterday client placed an order after 2:00pm (15.11.2006) and 2 orders today (16.11.2006) before 2:00pm. But when the owner received the mail the CSV was holding orders from 14th & 15 Nov. 2006 only. No order was showing up which were made today before 2:00pm (before the trigger time)
I manually tested and triggered the script. It send me then the orders made today.
Why not at 2:00pm the time it was set not shown the in the previous CSV??
and the code is made that if there will be no order in last 24hrs, the CSV file still be send but will be empty....
Any Help.... or anyone got exisiting codes... plz help.
It's hard to tell what your problem is (which is why you haven't gotten an answer).
It can be in the cron, it can be in the command the cron invokes, it can be in the script, it can be in an unexpected place in the script.
However no information that can help solve it is given.