Hello PHP coders,
I am looking for a function/addon to PHP to do PHP tasks, I want it to be so at X time a PHP task is done. (Ap doesnt have to be run)
Can anyone guide me in the right direction?
Thanks dudes,
Danny
Hello PHP coders,
I am looking for a function/addon to PHP to do PHP tasks, I want it to be so at X time a PHP task is done. (Ap doesnt have to be run)
Can anyone guide me in the right direction?
Thanks dudes,
Danny
If your a cpanel user, it may be possible to use the cron jobs to run a script at a timed interval.
If nott, the best way to acompish this is to run a script to check if its pasted a certain time and whether its been run, each page load, depending on the activty of the site, the more acureretyly it would find out and run the code you wanted. At least thinking of the top of my head![]()
Yes I googled that before I posted, is that PHP or is it shell?
EDIT: Thanks mentor, I will have a go!
Last edited by Luckyrare; 02-05-2006 at 07:32 PM.
All you need to do is type the name of the script you want to run and when you want to run it. Its quite simple really.Originally Posted by Luckyrare
Yes I googled that before I posted, is that PHP or is it shell?
EDIT: Thanks mentor, I will have a go!
And even if ur not using cpanel u can use cron jobs, as its apart of the OSOriginally Posted by 01101101entor
If your a cpanel user, it may be possible to use the cron jobs to run a script at a timed interval.
Anyway,
I would say Make the script u want to run, then make it run by a cron script
Yea, unlikcly most people Dont have any access to the actal O/S there server is running on thogh do they, Only to what ever control panel is provided to be able to interact with the software and in turn the operating system.Originally Posted by Eric30
And even if ur not using cpanel u can use cron jobs, as its apart of the OS
Anyway,
I would say Make the script u want to run, then make it run by a cron script
Also, Not every server runs the same O/S do they, so cron jobs aint avaible everywhere ya know...
Want to hide these adverts? Register an account for free!