470,864 Members | 1,989 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,864 developers. It's quick & easy.

fwrite() takes several seconds to complete - really strange problem!

I'm using proc_open to write to a perl program. Sometimes (not always)
the fwrite function below takes about 10 seconds to complete. Most of
the time it takes about 0.001 seconds. I don't know what could cause
this strange problem... Does anyone have a clue of where to start
looking?

$xml = "<xml>...</xml>";

$start = array_sum(explode(' ', microtime()));

$process = proc_open(HOME_DIR . "/perl.pl", $descriptorspec, $pipes);

print (array_sum(explode(' ', microtime())) - $start);

fwrite($pipes[0], $xml);

print (array_sum(explode(' ', microtime())) - $start);
Jul 17 '05 #1
0 1466

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by Alex | last post: by
17 posts views Thread by SW1 | last post: by
15 posts views Thread by Suraj Kurapati | last post: by
4 posts views Thread by Nate Murray | last post: by
1 post views Thread by Hennie7863 | last post: by
reply views Thread by Malcolm McLean | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.