Forum Moderators: coopster
I'm using php's system() to execute and pass a string to a c program, which produces the complete output. Everything works perfect expect I want the program to be already running to save starting and initialising each time. Maybe direct the post variable to the programs stdin and then stdout to the browser, much like system already does.
Any ideas what I should be looking at? hasn't got to be php.
Thanks.
I've been writing a search engine, only for fun and what I will learn in the process, I've done a few games before and thought this would make a change. I'm not using a standard database, mysql etc., the programs involved create and manipulate my own. At the moment the searcher is called using php system() which is fine but as I add more features etc. this is going to slow down, so I'm just preparing for the future. Basically I want the search string sent to an already running programs stdin and its stdout to the browser, well I think thats what I want to do?! maybe I'll have to go a more complicated route :)
No idea if fifo's exist in Windows land. This is also just what I'm coming up with off-the-cuff, so it may have some problems.