craigtolputt Posted January 28, 2009 Share Posted January 28, 2009 Hi Guys, I have had some php scripting done which checks the database for new entries and if there are any it saves them off to a csv file and then zips them up and emails the zipped csv to an email address. So this works fine but i need to create the whole lot again but making it check a different table in the database. I can do this no probs i have just copied the files and changed the table where they check but my problem is with the hosting company im with they only allow 3 scheduled tasks but im already using all three so i cant add another scheduled task to tell the new checking script to run every hour. So does anyone here know how i can make a php script that will tell both my checking scripts to run so that i can use that one in my scheduled tasks.. Feeeeew thats complicating for a designer i tell thee. cheers Link to comment https://forums.phpfreaks.com/topic/142817-cronjob-help-with-php-please/ Share on other sites More sharing options...
severndigital Posted January 28, 2009 Share Posted January 28, 2009 just an include_once call for each script should work include_once 'script1.php'; include_once 'script2.php'; save that to a file and run it .. it should pull both scripts in and run them in sequence. Link to comment https://forums.phpfreaks.com/topic/142817-cronjob-help-with-php-please/#findComment-748618 Share on other sites More sharing options...
craigtolputt Posted January 28, 2009 Author Share Posted January 28, 2009 Ah great ill try it thanks Link to comment https://forums.phpfreaks.com/topic/142817-cronjob-help-with-php-please/#findComment-748620 Share on other sites More sharing options...
lordshoa Posted January 28, 2009 Share Posted January 28, 2009 I will be cheeky onlinecronjobs.com but you could make a file and then run or cron jobs from that so one cron in the cron panel running your php file 'cron.php 'which in turn has your php code for the crons in it only thing it they will run at the same time which is ok if they both run every hour. Link to comment https://forums.phpfreaks.com/topic/142817-cronjob-help-with-php-please/#findComment-748622 Share on other sites More sharing options...
craigtolputt Posted January 28, 2009 Author Share Posted January 28, 2009 Cheers, I'll try the includeonce thing and if not then ill try your cronjob site thanks Link to comment https://forums.phpfreaks.com/topic/142817-cronjob-help-with-php-please/#findComment-748635 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.