Warnung: file_put_contents(/home/www/web1/html/php_dev/test.txt) [function.file-put-contents]: failed to open stream: Permission denied in /home/www/web1/html/php_dev/sys/lib.activity.php (Zeile 58)
Upload Problem [Archiv] - PHP-Scripte PHP-Tutorials PHP-Jobs und vieles mehr
brauche Webseite ideal für Vereine und Firmen
- Ad -
php-resource




Archiv verlassen und diese Seite im Standarddesign anzeigen :
Upload Problem


 
fzaphod
09-03-2005, 09:31 
 
Folgendes Upload Script macht nicht was ich will. Woran liegt es?

<form method="POST" enctype="multipart/form-data" action="<?PHP echo $PHP_SELF ?>">
<table>
<?
$z1=0;
do
{
$z1++;
echo'<tr>
<td><input type="file" name="'.$z1.'"></td></td>
</tr>';
}
while ($z1<2);

?>
<tr><td><input type="submit" name="up" value="upload"></td></tr>
</table>
<?
if(isset($POST['up']))
{
$z2=0;
$pfad="http://127.0.0.1/htdocs/AP/mylogin/Projekte/";
do
{
$z2++;
$file=$_POST[$z2];
move_uploaded_file($file,$pfad);
}
while($z2<2);
}else;
?>

 
Abraxax
09-03-2005, 09:33 
 
http://de.php.net/manual/en/features.file-upload.php

- -

Alle Zeitangaben in WEZ +2. Es ist jetzt 20:09 Uhr.