baseline 7.4 as-is produzione
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php␍
|
||||
if($_POST['Submit']){␍
|
||||
$open = fopen("general.txt","w+");␍
|
||||
$text = $_POST['update'];␍
|
||||
fwrite($open, $text);␍
|
||||
fclose($open);␍
|
||||
echo "File updated.<br />"; ␍
|
||||
echo "File:<br />";␍
|
||||
$file = file("myfile.txt");␍
|
||||
foreach($file as $text) {␍
|
||||
echo $text."<br />";␍
|
||||
}␍
|
||||
}else{␍
|
||||
$file = file("textfile.txt");␍
|
||||
echo "<form action=\"".$PHP_SELF."\" method=\"post\">";␍
|
||||
echo "<textarea Name=\"update\" cols=\"50\" rows=\"10\">";␍
|
||||
foreach($file as $text) {␍
|
||||
echo $text;␍
|
||||
} ␍
|
||||
echo "</textarea>";␍
|
||||
echo "<input name=\"Submit\" type=\"submit\" value=\"Update\" />\n␍
|
||||
</form>";␍
|
||||
}␍
|
||||
?>
|
||||
Reference in New Issue
Block a user