Running PHP as CLI, takes a long time

0

Whenever I need something doing, I write a PHP script to do it. I like PHP, it's simple, doesn't need compiling, and I can have a tool written in minutes.

Trouble is, when I try running PHP in the command line, it takes about five seconds to start, then when it's finished it takes another five seconds to exit and go back to the prompt.

This happens no matter what I'm doing with PHP, whether it's running a script or just viewing the help info.

Does anyone have any idea what might be causing this problem?

Niet the Dark Absol

Posted 2011-09-15T23:08:04.150

Reputation: 547

Try using strace to find out – vtest – 2011-09-16T01:22:03.347

Answers

0

You may want to take a look at a similar question on our sister site stack overflow

OldWolf

Posted 2011-09-15T23:08:04.150

Reputation: 2 293

Right on, thank you very much for the pointer. Funny thing is I was considering posting this on SO first, but decided it wasn't programming-related enough ;) – Niet the Dark Absol – 2011-09-16T03:21:42.987