| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Regular | Help with Cron Jobs Hi - I need help setting up a cronjob - This is what the directions say to do - Create a cron job to ensure that the page cron.php gets executed periodically. This page will close auctions, notify bidders, etc. The following is a cron to run daily at 12:15 am. You can change this once your site has heavier traffic to run more often however to start with once a day is highly recemmended. Using Cpanel, access cron jobs off the main page. There, click on Advanced (Unix Style), and enter your email address then enter the following information in the box's: (15) in first box, (0) in second, (*) in third, forth and fifth, (GET http://yourdomain.com/cron.php > /dev/null) in the text field. 15 0 * * * GET http://yourdomain.com/cron.php > /dev/null In my Control Panel this is what I see - Command to Run (What goes here) Email Address Where the Cron Output Will be Sent (I understand this part) And then there are 5 boxes to set (I understand this part) Can anyone help? Thanks Drew |
| |
| | #2 (permalink) |
| NamePros Regular | This looks like the directions for PHP Auction, anyways, check out this manual, it will tell you the command to put in depending on your server. Even if it isnt for phpauction, the command should be similar 1. Go to http://www.phpauction.org/manuals/gpl_ins_ht/index.html 2. Click on 'Manual Installation' 3. Click on 'Manual Configurations' You will then see this (you wont need to do the above if you understand this): --- In Linux if you have PHP installed as a module, you can create a file /etc/cron.daily/phpauction.cron with these contents: #!/bin/sh lynx -dump /dev/null http://www.mydomain.com/phpauction/cron.php --- If you have (or also have) PHP installed as a CGI you can substitute the lynx call above with the following: PHP /absolute/path/to/cron.php Of course the path to cron.php will depend on where you installed phpauction. Be sure to give cron.php permission to be executable. --- In Windows, you can add a task manager job phpauc.job C:\php\php.exe c:\myweb\htdocs\phpauction\cron.php |
| |
| | #3 (permalink) |
| Pro Coder & Designer | if you are using cpanel. then you have the option between standard and advanced, if you do advanced you can copy and paste the code. if you to standard then you have to manually adjust the time.
__________________ Online Dragonball Game |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| An Inspirational "Speech" From Steve Jobs | Dave Zan | The Break Room | 1 | 06-16-2005 10:07 AM |
| Casino Jobs | Monsterman | Domain Appraisals | 6 | 06-30-2004 08:06 AM |
| free jobs and paying jobs | polandsprings | Web Development Wanted | 1 | 09-15-2003 02:43 PM |