0

I'm using PHP script from cli, the script calls exec() few times. There are some minor errors sometimes, which are handled by php script. I'm suppressing the errors by appending 2>/dev/null to the end of each command... Is there any way to achieve that without adding the forementioned?

1 Answer 1

1

If you use proc_open instead of exec, you should get more control over the file descriptors.

You must log in to answer this question.

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