Jump to content

popen in write mode problem...


mailjol

Recommended Posts

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

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.