18 lines
233 B
PHP
18 lines
233 B
PHP
<?php
|
|
if (!isset($_POST['post']))
|
|
{
|
|
end_html();
|
|
die;
|
|
}
|
|
|
|
if (fwrite($filehandle, $_POST['post']) === FALSE)
|
|
{
|
|
echo "Cannot write to file ($file)";
|
|
exit;
|
|
}
|
|
|
|
echo "Success, saved file ($file)";
|
|
fclose($filehandle);
|
|
|
|
?>
|