Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
Try using strace to find out – vtest Sep 16 '11 at 1:22
up vote 0 down vote accepted

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

share|improve this answer
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 Sep 16 '11 at 3:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .