Hi,
ich habe ein Problem mit dem Dateiupload. Was ist hier falsch:
<?php session_start(); ?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="../stylesheet/peoplesstyle.css">
</head>
<body>
<?
if(isset($file))
{
//$path = peoplesplace/html/upload/";
$path = "../pictures/";
if (!copy($file, $path.$file_name))
{
//Place for Error-messages.....
}
else
{
echo"The file $file_name was uploaded successfully!";
}
}
else
{
echo"
<form name=frmUpload action=content_setup_pictures.php method=post target=_self enctype=multipart/form-data>
<input type=hidden name=MAX_FILE_SIZE value='1048'>
<table height=100% width=100% cellpadding=0 cellspacing=0>
<tr>
<td height=25% width=10%> </td>
<td height=25% width=40%> </td>
<td height=25% width=40%> </td>
<td height=25% width=10%> </td>
</tr>
<tr>
<td height=40% width=10%> </td>
<td height=40% width=40%><b>Foto Upload</b></td>
<td height=40% width=40%><input name='file' type='file' width=100% class='textfield'></td>
<td height=40% width=10%> </td>
</tr>
<tr>
<td height=10% width=10%> </td>
<td height=10% width=40%> </td>
<td height=10% width=40%><input type=submit name=btnSubmit value=Upload></td>
<td height=10% width=10%> </td>
</tr>
<tr>
<td height=25% width=10%> </td>
<td height=25% width=40%> </td>
<td height=25% width=40%> </td>
<td height=25% width=10%> </td>
</tr>
</table>
</form>
";
}
?>
</body>
Ich bekomme immer eine Fehlermeldung! Wie gebe ich denn im Path den Directorynamen an?
Vielen Dank für Eure Antworten
Stefan