Re: [PHP] Re: Background Process

2009-06-10 Thread Simon
kranthi, you are wrong here. popen() will open a pipe to a process. You must have meant fopen() which doesnt work with pipes, but with files. you first popen php (ie execute it) you then write the code you want php to exec (php is still executing, reading your input) at the end you pclose php

[PHP] Re: Background Process

2009-05-26 Thread Nathan Rixham
shahrzad khorrami wrote: Hi, I have two php scripts, first one must pass arguments to second(the php script that will take more time to process for example inserting 100 records to db, data come from first script). I search around web and find below function: function

Re: [PHP] Re: Background Process

2009-05-26 Thread kranthi
popen will allow you to read/write data to a file but not execute the php code. i am assuming that you want to execute the php script like include/require does.. if that is the case system() will serve your purposebut this requires php to be installed as a CLI ?php $res =