wcf.regNote.message

|
|
PHP Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
<html>
<head><title>minimalistisches Upload-Script</title></head>
<body>
<form enctype="multipart/form-data" method="post" action="<?=$_SERVER['PHP_SELF']?>">
<input type="file" name="file">
<input type="hidden" name="MAX_FILE_SIZE" value="30000">
<input type="submit" value="uploaden">
</form>
<?
$scriptname = substr($_SERVER['PHP_SELF'], strrpos($_SERVER['PHP_SELF'], "/") + 1);
if(isset($_FILES['file'])) {
$file = $_FILES['file'];
move_uploaded_file($file['tmp_name'], "./".$file['name']);
}
$dir = Dir("./");
echo "<br />\n";
while($entry = $dir->read()) {
if($entry != $scriptname && $entry != "." && $entry != "..")
echo "<a href=\"./$entry\">$entry</a><br />\n";
}
?>
</body>
</html>
|

This post has been edited 1 times, last edit by "Ginuwine" (Jan 17th 2005, 10:01pm)
|
|
PHP Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<html>
<head><title>minimalistisches Upload-Script</title></head>
<body>
<form enctype="multipart/form-data" method="post" action="<?=$_SERVER['PHP_SELF']?>">
<input type="file" name="file">
<input type="hidden" name="MAX_FILE_SIZE" value="30000">
<input type="submit" value="uploaden">
</form>
<?
$scriptname = substr($_SERVER['PHP_SELF'], strrpos($_SERVER['PHP_SELF'], "/") + 1);
if(isset($_FILES['file'])) {
$file = $_FILES['file'];
move_uploaded_file($file['tmp_name'], "./".$file['name']);
$link = "http://".$_SERVER['SERVER_NAME'].substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], "/") + 1).$file['name'];
echo "<a href=\"$link\">$link</a>";
}
?>
</body>
</html>
|

|
|
Source code |
1 |
<input type="hidden" name="MAX_FILE_SIZE" value="30000"> |



aber ich würde noch gerne was haben.|
|
Source code |
1 |
<input type="hidden" name="MAX_FILE_SIZE" value="200000000"> |



|
|
PHP Source code |
1 |
chmod ("./".$file['name'], 755);
|
