
![]() |
vsloathe
Create a system whereby you (or several users!) had a control panel app, and this control panel let you add scheduled jobs. Say you could log in and say "do this task every 2 hours, and email me the results". How would you go about it?
perkiset
I'd write an itsy cron job that checked a DB for jobs once a minute.
It can go from very GUI to very codish... if I was doing it for *me* then I'd prolly just have a text blob with some code that was executed, or perhaps the name of a PHPfile that I wanted run.Schedulewise, I'd probably mimic cron, or close to it with a couple notable exceptions, like run every 17 minutes and such, or run based on state change of a particular resource ( a semaphore file is dropped, a new file exists, a field in a table has changed etc etc). With this sort of mechanism you'd avoid all the permission issues you'll run into if you try to modify crontabs on the fly via PHP.![]() nop_90
make a demon process
have demon process only allow communication with rpc calls then make gui (does not matter if on server side or client side) that talks to it over the rpc. dink
quote How would you go about it? Fire up skype and dial up Bombay? vsloathe
ty ty perk for idea.
jammaster82
quote author=vsloathe link=topic=887.msg6272#msg6272 date=1208201506 Create a system whereby you (or several users!) had a control panel app, and this control panel let you add scheduled jobs. Say you could log in and say "do this task every 2 hours, and email me the results". How would you go about it? sounds like rb4 to me... ![]() HOw about storing actual phpcode in the databasefields and then executing it with the following: http://www. php.net/eval? just throwing out ideas, still havent the first clue of php...programs writing programs always gave me a wank.gif |

Thread Categories

![]() |
![]() |
Best of The Cache Home |
![]() |
![]() |
Search The Cache |
- Ajax
- Apache & mod_rewrite
- BlackHat SEO & Web Stuff
- C/++/#, Pascal etc.
- Database Stuff
- General & Non-Technical Discussion
- General programming, learning to code
- Javascript Discussions & Code
- Linux Related
- Mac, iPhone & OS-X Stuff
- Miscellaneous
- MS Windows Related
- PERL & Python Related
- PHP: Questions & Discussion
- PHP: Techniques, Classes & Examples
- Regular Expressions
- Uncategorized Threads