You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rasmus Lerdorf <ra...@lerdorf.on.ca> on 1998/09/03 22:54:07 UTC

Re: trouble with popen()

> This might seem trivial, but I'm having problems popen()'ing (it returns
> NULL) either from a module or using PHP.
> 
> Am I overlooking something? PHP is compiled in non-safe mode, but when I
> started trying to figure why PHP doesn't work I remember when I had
> problems doing that in my apache module..
> 
> Using Apache 1.2.6/PHP 3.0.3/FreeBSD 2.2.7R

Do you mean the user-level popen() function in PHP?  It should work ok.
Are you sure you are not hitting a permission issue?  ie. if you try to
run the same command from the shell as your web server user id, does it
work?

-Rasmus