My question is, how do I close out auctions and notify the winners if no one is actively browsing my webauction website? I tried manually running index.php from the command line by doing:
- Code: Select all
php index.php
Which seemed to work since I got an email stating I had won the auction as soon as I ran index.php BUT the email had a broken link in it like so:
- Code: Select all
You are the winner of the product 'Test Product'. Your bid was $3.00 .
For more information about this product visit ://:./index.php?-action=view&-table=products&product_id=%3D8 .
I'm guessing since I ran index.php from the command line, it wasn't able to get the URL.
I'd like to setup a CRON job that runs index.php once every min so that the auction will email the winner at the exact time the auction closes even if no one is browsing the auction site. How can I do that and still have the correct URL in the winning email?
I'm surprised that no one else has asked about this yet.