rycka Posted March 21, 2007 Share Posted March 21, 2007 hallo, i need your advice how to write such code. hello Now my program works in such way: User comes to php web site, enter some data,(which need for calculation), and press calculate. PhP scripts runs perl code with some of users given data and it calculates data, writes to files, then php script takes that info and gives to user. But i need to write this to work like deamon. like: user comes to website enter some data. php check if perl is calculating or not, if not it start to run perl script with given data, if it is calculating add new data to queue and gives to user some ID, perl takes jobs from queue one by one, while reaches last one and stops. user could see results using unique ID. maybe you can help how to easiest do in that way, save data in some files with unique names, or in one file, or using mysql tables.. . how to check perl script is runing or not...? maybe have some examples of working script ... p.s. sry for my poor english thx Link to comment https://forums.phpfreaks.com/topic/43666-need-advice-writing-script/ Share on other sites More sharing options...
per1os Posted March 21, 2007 Share Posted March 21, 2007 Sounds like you will need a MySQL Database and a Cronjob. Link to comment https://forums.phpfreaks.com/topic/43666-need-advice-writing-script/#findComment-211992 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.