file locking

This commit is contained in:
udo
2021-12-07 01:32:46 +00:00
parent 0685fdf29a
commit 1f0f08f787
6 changed files with 74 additions and 26 deletions
+22
View File
@@ -0,0 +1,22 @@
RENDER()
{
DTree t;
<>
<link rel="stylesheet" href='style.css'></link>
<h1>
<a href="index.uce">UCE Test</a>:
FileI/O
</h1>
File IO:
<pre style="white-space: pre-wrap"><?= file_get_contents("fileio.uce") ?></pre>
Params
<pre><?= var_dump(context->params) ?></pre>
</>
}
+1
View File
@@ -23,6 +23,7 @@ RENDER()
<li><a href="json.uce">JSON</a></li>
<li><a href="memcached.uce">Memcached</a></li>
<li><a href="mysql.uce">MySQL Connector</a></li>
<li><a href="fileio.uce">File I/O</a></li>
</ul>
<pre><?
echo("Worker PID: "+std::to_string(my_pid)+"\n");
+2 -2
View File
@@ -2,7 +2,7 @@
void show_form()
{
<form action="?" method="post" enctype="multipart/form-data">
<><form action="?" method="post" enctype="multipart/form-data">
<div>
<label>Some text:</label>
<input type="text" name="fühld" value="<?= context->post["fühld"] ?>"/>
@@ -14,7 +14,7 @@ void show_form()
<div>
<input type="submit" value="Submit Form"/>
</div>
</form>
</form></>
}