mailjol Posted January 20, 2007 Share Posted January 20, 2007 I am trying to start a process using popen function and wish to write data to it. But I do not wish the calling script to wait for the process to end so I use the '&' operator. This is what I am doing:$handle = popen('process &', 'w');fwrite($handle, $data);pclose($handle);As expected the calling script doesn't wait and returns immediately but the process doesn't get the data either. Is there a workaround to this?Thanks,Akash Link to comment https://forums.phpfreaks.com/topic/34981-popen-in-write-mode-problem/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.