[UPHPU] Using exec() to ping?
digitalsuicide at gmail.com
Tue Apr 4 14:48:47 MDT 2006
Benjamin Schmuhl wrote:
>Yeah, I meant exec()! I ran that same code on my server and it was a no-go!
>I'll keep looking, maybe I am missing something. When I ran a test script
>from the command line, it worked fine, it's just when it's run from apache.
>Maybe I can make a shell script or something to help out...
I'm going to make a wild leap in logic and say that it has to do with
the PATH that exists in the environment PHP is running in. Do this for me:
bash$ which php
(if that doesn't work, use whereis)
and the output of this:
Which distro / version of Linux are you running, by the way?
More information about the UPHPU