Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Viva Pessoal,
gostava que me ajudassem no seguinte GOSTAVA que fosse possivel alterar o nome dos ficheiros em modo ONLINE, ou seja os ficheiros já estão no servidor so necessito de ter a opção de renomear o que ja existe
Já tenho pronto o sistema de UPLOAD e DELETE de ficheiros
>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="[http://www.w3.org/1999/xhtml">](http://www.w3.org/1999/xhtml%22)
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="stelth1_deleter.php">
<table width="500" border="0" cellspacing="0" cellpadding="0">
<?php
if ($handle = opendir('arquivo')) {
//echo "Directory handle: $handle\n";
//echo "Files:\n";
// List all the files
while (false !== ($file = readdir($handle))) {
echo " <tr>
<td width=\"43\">
<input type=\"checkbox\" name=\"delete[]\" value=\"$file\" />
</td>
<td width=\"440\" class=\"style3\"><a href=\"arquivo/$file\">$file</a></td>
</tr>";
}
closedir($handle);
}
?>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"><input name="Delete" type="submit" value="Delete checked items" /></td>
</tr>
</table>
</form><p>
<form action="upload.php" method="post" ENCTYPE="multipart/form-data">
<p>Upload Fotos </p>
<p>
<input type="file" size=40 name="file">
<br>
<input type="hidden" name="MAX_FILE_SIZE" value="100000">
<input type="submit" value="Upload">
</p>
</form>
</body>
</html>
Agradeço ajuda.
Carregando comentários...