Was is hier dran falsch??
ich will ganz einfach was uploaden
so weit geht alles bloß der upload nicht wirf mal einen einen blick rüber!
Code:
<div style="position:absolute; top:160px; left:175px; ">
<form enctype="multipart/form-data" action="index.php?action=upload" method="post">
<table width="650" border="0" cellpadding="0" cellspacing="0" bgcolor="#548B69" width="560" border="0" cellspacing="0" cellpadding="2" style="border-style:solid; border-width:1px; border-color:#000000;">
<tr>
<td><b>Screenshots hochladen</b></td>
</tr><tr>
<td> </td>
</tr>
<tr>
<td>Bild:<input class="loginfield" name="userfile" type="file"><input type="hidden" name="MAX_FILE_SIZE" value="1000"></td>
</tr>
<tr>
<td><input class="loginfield3" type="submit" value="Send" name="$upload"</td>
</tr>
</table>
</form>
</div>
<? } if ( $action == upload ) { ?>
<div style="position:absolute; top:160px; left:175px; ">
<?
if (is_uploaded_file($_FILES['userfile']['tmp_name'])) {
move_uploaded_file($_FILES['userfile']['tmp_name'], "/_images");
} else {
echo "Possible file upload attack. Filename: " . $_FILES['userfile']['name'];
}
?>
so heißt der fehler
Zitat:
Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(/_images) is not within the allowed path(s): (/usr/local/httpd/htdocs/kunden/web14/) in /usr/local/httpd/htdocs/kunden/web14/html/index.php on line 357