Go Back   Free website templates > Web Template Help > PHP and MySQL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Join now to download all the free website templates or post on the forum. If you have never been on a forum before read the FAQ. It's quick, easy and free to join!
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-17-2009, 11:08 AM
Junior Member
 
Join Date: Jul 2009
Posts: 2
gwsuk77 is on a distinguished road
Question How do I combine Cron Jobs PHP files?

Hi,

Can anyone please help me combine my Cron Jobs PHP files?

I have two Cron Job PHP files that I would like to combine into one.

a) cron_send.php

b) cron_expand.php

I would like to set it up so that when ( cron_send.php ) completes, it will call in and start ( cron_expand.php )

Is it possible to call in and execute several cron job files from within one php file.

Cron_send.php already has an include as follows...

set_time_limit(0);
include("inc.all.php");

Would the following include command work to call in ( cron_expand.php ) once ( cron_send.php ) completes..

include("inc.all.php,cron_expand.php");

I will appreciate any help at all.

Many thanks,

Frederick Malick
Reply With Quote
  #2 (permalink)  
Old 07-17-2009, 11:42 AM
ishkey's Avatar
Moderator
 
Join Date: Aug 2007
Location: North GA USA
Posts: 1,360
ishkey will become famous soon enough
Default

What type of server are you running on?
Is your PHP installed as CGI or as an Apache module?
__________________
RIF= Reading Is Fun - Understanding Funner
cleandeck - lawn mower undercoating and wilmargraphite - graphite lubricants
Reply With Quote
  #3 (permalink)  
Old 07-17-2009, 01:10 PM
Junior Member
 
Join Date: Jul 2009
Posts: 2
gwsuk77 is on a distinguished road
Default How do I combine Cron Jobs PHP files?

Hi ishkey,

Thank you for your reply.

PHP installed as CGI and am running on windows xp.

Thanks,

Frederick
Reply With Quote
  #4 (permalink)  
Old 07-17-2009, 05:43 PM
ishkey's Avatar
Moderator
 
Join Date: Aug 2007
Location: North GA USA
Posts: 1,360
ishkey will become famous soon enough
Default

My web server is an "apache running linux"

My home pc's have several different operating systems such as XP, VISTA, RED HAT, more.

I still need to know - What type of "WEB SERVER" are you running on? Not your personal operating system.
__________________
RIF= Reading Is Fun - Understanding Funner
cleandeck - lawn mower undercoating and wilmargraphite - graphite lubricants
Reply With Quote
  #5 (permalink)  
Old 08-27-2009, 04:05 PM
bmcoll3278's Avatar
Moderator
 
Join Date: Jun 2009
Posts: 294
bmcoll3278 is on a distinguished road
Default

To combine the two cron jobs is easy. I assume either one works right now. so just open both files in notepad take the one you want to run second and just paste it in at the bottom of the first file. so as the first one finishes it goes right into the next. That should work just fine. Just save a copy of each file as backup. If you have a problem with it send me the files and I will combine them into one for you.
__________________
I hope to build a site with something for every body
www.bmcoll.com
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:23 AM.



mouseover mouseover mouseover