Selacius Posted March 26, 2006 Share Posted March 26, 2006 What is the PHP code to add a cron job? I know how to execute them, but I need a code which will set a cron job up when a page is viewed. Link to comment Share on other sites More sharing options...
calvin182 Posted March 26, 2006 Share Posted March 26, 2006 i've never tried it but if you have cPanel on your server, I see there's an icon for it. Link to comment Share on other sites More sharing options...
Selacius Posted March 26, 2006 Author Share Posted March 26, 2006 I do have cPanel, but I am setting up an auction house for my game. SO whenever a user posts a new item to be auctioned, I want it to create a cron job that expires in the time designated by the user. Link to comment Share on other sites More sharing options...
calvin182 Posted March 27, 2006 Share Posted March 27, 2006 ohhh... I don't know about that then. You probably will have to have it set the date in a database and then have a script check for expiring content every so often. I don't know anything about databases tho. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now