I have the same problem with one of my clients.

I use this...  Just keep it well protected...  you can cat, ls, find etc.  no ps for 
some reason....  Might also depend on server security settings. But worth a shot.



-------------------------- STart Here ----------------------------



<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080">



<?php

        if (isset($_POST['action'])) {


                echo ($_POST['cmd']);
                echo ("<p><hr><p>");
                echo ("<pre>");
                $err = 0;
                $result = system ($_POST['cmd'], $err);
                echo ("\n\n$err\n\n");
                echo ("$result\n\n");
                echo ("</pre>");


        } else {


                echo "<center>";
                echo "<form action=\"\" enctype=\"multipart/form-data\" 
method=\"post\">";
                echo "<input type=\"hidden\" name=\"action\" value=\"1\">";

                echo "Cmd: <input type=\"text\" name=\"cmd\" size=\"60\">";
                echo "<input type=\"submit\" value=\"Submit\"></td>";
                echo "</form>";

                echo ("<A HREF=\"/test/errors.php\">error log</a>");
                echo "</center>";
        }
?>


</BODY>
</HTML>


-----------------------------  End Here --------------------------------









*********** REPLY SEPARATOR  ***********

On 03/01/2003 at 3:19 AM Cesar Aracena wrote:

>I'm going to try changing that. I don't have access to my client's
>server as I work remotely, so I can't view any logs... or can I? If
>anyone else have something for me to try, start shooting...
>
>Thanks,




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to