Jump to content

exec() is very very slow


rusew

Recommended Posts

I've been googling this for ages and so far, no luck.

 

I'm calling dot to render a graph. When I call it from the command line, it executes in under a second. When I do it with exec(), system(), or back-tick, it takes about a minute.

 

Even more mystifying is that the php executes in under a second on my webserver (media temple), it just takes time on my dev computer (os x snow leopard).

 

The code is like this:

 

$command = "/usr/local/bin/dot -Tgif test.dot -o test.gif"

exec($command);

 

Link to comment
https://forums.phpfreaks.com/topic/175387-exec-is-very-very-slow/
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.