Posted by Good Man on 02/03/06 19:56
"jonathan.beckett" <jonathan.beckett@gmail.com> wrote in
news:1138970152.834117.49630@o13g2000cwo.googlegroups.com:
> Hi all,
>
> We have PHP 4 installed on Windows 2003 with Apache 2, and the
> shell_exec has mysteriously stopped working - it hangs the page rather
> then returning anything.
hi
try using backticks:
ln 1:$myCommand = "some code that will do things on the server";
ln 2:`$myCommand`;
instead of
ln 2:shell_exec($myCommand);
the backtick thing has worked for me in all instances where shell_exec,
exec have not.
Navigation:
[Reply to this message]
|