Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
How to CRON multiple URL's
Old 05-07-2009, 02:15 PM How to CRON multiple URL's
Junior Talker

Posts: 4
Trades: 0
I am trying to set up a CRON job to run multiple url's from a PHP file but am very very much unsure how to do this.

What I am doing is setting up a site for a Clan wars group and there are over 200 members in there group, every 24 hours they are allowed to receive a gift from a teammate.

I was hoping to automate this since 1 teammate can send to all it would just make sense if I can put all of the teammates gift url from a single teammate in a file and then run it from a CRON job, this will help them from having to go to the url themselves.

If anyone can give me some ideas on how I would set this up in a PHP file, thanks a lot.
yamaharr1 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-08-2009, 07:00 AM Re: How to CRON multiple URL's
rogem002's Avatar
PHP Chap

Posts: 843
Name: Mike
Location: United Kingdom
Trades: 0
Easy, Add more than one cron.

For example
cron #1 - file1.php
cron #2 - file2.php
cron #3 - file3.php

Or just have a one PHP file that uses file_get_contents(the files you want.php); or runs the scripts you want to run.
__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Old 05-08-2009, 07:55 AM Re: How to CRON multiple URL's
Junior Talker

Posts: 4
Trades: 0
Quote:
Originally Posted by rogem002 View Post
Easy, Add more than one cron.

For example
cron #1 - file1.php
cron #2 - file2.php
cron #3 - file3.php

Or just have a one PHP file that uses file_get_contents(the files you want.php); or runs the scripts you want to run.

Hello Roger,

Thanks for trying to help on this.

This will be my first time trying to set up a cron so am very new to the whole thing. I have been searching and reading but when things are new they are always hard to understand, so your suggestions are greatly appreciated.


I can't set up a CRON for each file, I just looked to get an accurate count and there are a little under 300 members so that would deffinitley not work.

You second suggestions is what I would like to do but am not sure how to build the file or what is supposed to be in it to go hit the url's.


Basically it would be like:

http://somesite.com/member1
http://somesite.com/member2
http://somesite.com/member3
http://somesite.com/member4
etc.
etc.

Right now it would be almost up to 300 but am sure they will grow so it would have to be able to have more added.

I do know and understand what CRONS are I just never had to make a CRON file.

Thanks again.
yamaharr1 is offline
Reply With Quote
View Public Profile
 
Old 05-08-2009, 08:03 AM Re: How to CRON multiple URL's
Novice Talker

Posts: 7
Name: Dream Girl
Trades: 0
Rogem, so kind of you.your information helped me so much
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
- Help Us Spread The Word!
dreamgirl is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How to CRON multiple URL's
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.82472 seconds with 12 queries