Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
<form enctype="multipart/form-data" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<input type="hidden" name="max_file_size" value="1000">
file senden: <input name="thefile" type="file">
<input type="submit" value="senden">
</form>
move_uploaded_file($_FILES['thefile']['tmp_name'],"/pfad/zum/neuen/direktory/name.endung")
function PostZumHost($host, $pfad, $referer, $daten)
{
$fp = fsockopen($host, 80);
fputs($fp, "POST $pfad HTTP/1.1\r\n");
fputs($fp, "Host: $host\r\n");
fputs($fp, "Referer: $referer\r\n");
fputs($fp, "Content-type: application/x-www-form-urlencoded\r\n");
fputs($fp, "Content-length: ". strlen($daten) ."\r\n");
fputs($fp, "Connection: close\r\n\r\n");
fputs($fp, $daten);
while(!feof($fp))
{
$res .= fgets($fp, 128);
}
fclose($fp);
return $res;
}