RE: [PHP] Mass-mailing method
| From: | Michael J. Pawlowsky | Date: | Fri, 03 Jan 2003 06:27:46 +0000 |
| Subject: | RE: [PHP] Mass-mailing method | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-130060@lists.php.net to get a copy of this message | ||
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,