note 48291 rejected from function.fopen by betz
| From: | betz@php.net | Date: | Sat, 18 Dec 2004 17:06:09 +0000 |
| Subject: | note 48291 rejected from function.fopen by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-81980@lists.php.net to get a copy of this message | ||
Note Submitter: winsonhk11 at yahoo dot com dot hk
----
<?
$guestbookfilename = "pwn.txt";
if (!file_exists($guestbookfilename)) {
$file = fopen($guestbookfilename, "a");
fclose($file);
}
$name = nl2br($_POST["Name"]);
$class= nl2br($_POST["Class"]);
$user = nl2br($_POST["User"]);
$dname = nl2br($_POST["Dname"]);
$skin = nl2br($_POST["Skin"]);
$file = fopen($guestbookfilename, "a");
$msg .= "<tr><td width=15% height=24><div
align=center>".$class."</div></td><td width=15%><div
align=center>".$name."</div></td><td width=15%><div
align=center>".$user."</div></td><td width=39%><div
align=center>".$dname."</div></td><td width=34%><div
align=center>".$skin."</div></td><td width=22%><div
align=center>*</div></td></tr>";
fputs($file, $msg);
fclose($file);
header ("location:../pwn.php");
?>
If I want to increase the writing to the document opening,How should above I revise the php code?