Thema: Fehler im php
Einzelnen Beitrag anzeigen
Alt 25.12.2003, 10:15   #1 (permalink)
Rambow
50 Beiträge
 
Registriert seit: 04.08.2003
Ort: Hamburg
Beiträge: 99
Rambow eine Nachricht über ICQ schicken
Standard

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>&nbsp;</td>
</tr>
<tr>
<td>Bild:<input &nbsp;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'])) {
 &nbsp; &nbsp;move_uploaded_file($_FILES['userfile']['tmp_name'], "/_images");
} else {
 &nbsp; &nbsp;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

__________________
OFP 4ever.
Rambow ist offline   Mit Zitat antworten