Auctions never close unless someone is using the site. CRON?

A place to discuss and receive support for the Web Auction application.

Auctions never close unless someone is using the site. CRON?

Postby kunk » Fri May 30, 2008 10:07 pm

I've installed webauction on one of my Ubuntu linux boxes. From what I'm seeing, an auction will never close unless someone is actively browsing the auction site. I tested this by creating a test auction that closed at 10am that morning and placed a bid on it around 9:30am. As of 1pm I still hadn't gotten any email stating I had won the auction. As soon as pulled up the auction website in my web browser at about 1:30pm I finally got the email stating I had won the auction.
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.
kunk
 
Posts: 5
Joined: Fri May 30, 2008 9:50 pm

Postby shannah » Fri May 30, 2008 10:49 pm

Try using wget in your cron job instead.

e.g.
wget http://yourdomain.com/webauction/index.php
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Web Auction Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved