Hey.. seeing as there is not way specified in the docs that I can find, I thought I'd email this list as there may be an undocumented way of doing it.

On Linux: I'm converting some bash scripts to php.. in the bash scripts I sometimes do at the very top:

"   exec 2>/path/filename "

Which changes where stderr goes because it closes and reopens file descriptor 2

I've played around and around with things with some php cli scripts, but cannot do it.

Is there a way of changing the actual process's file descriptor 2 to something else. (or any fd for that matter)

Thanks,
 Davy



--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to