Re: [PHP] Commands which call exec() or shell_exec() ??

[email protected] (Matijn Woudt)
Newsgroups php.general
Message-ID <CAC_gtuMb0YnrEdT7iorrhO=6wSb8a9FMm8A=4gTHCx5OTvDpmg@mail.gmail.com>
On Tue, Apr 9, 2013 at 9:11 PM, Ken Kixmoeller <[email protected]> wrote:

> Hi -- -
>
> Strange problem. One of my applications was just moved to a new server. The
> new server has php configured to blacklist some functions (using
> "disable_functions="). One of the "banned" functions is exec().
>
> The error log is reporting "shell_exec() has been disabled for security
> reasons"  --- but exec() or shell_exec() are not in my code *anywhere*. The
> program and line number being reported makes absolutely no sense.
>
> Are there other php commands that really call exec() or shell_exec() ???
> Any clues how this could happen? Fixes (other than un-blacklisting the
> command, of course)?
>
> Many thanks,
>
> Ken
>

The back tick(`) operator is also used for that same purpose. Maybe that's
in your code?

- Matijn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.