Jump to content

need advice writing script


rycka

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.