hi.
I have the
<HTML><HEAD><title>files.php</title></HEAD>
<?php
echo "elenco files disponibili:<BR>";
$cartella=dir("files");
while ($f = $cartella->read())
{
if ($f!='.' && $f!='..')
{
$dest="scarica.php?nome_file=".$f;
echo "<A HREF=".$dest.">scarica: ".$f."</A><BR>";
}
}
$cartella->close();
?>
and the
?php //scarica.php
header("Content-type:*");
header("Content-Disposition: inline; filename=".$nome_file);
readfile($nome_file);
exit;
?>
"files" ,"files.php" and "scarica.php" are all saved in the same dirctory
in outputwhen i click the link of one of the files to download, it returns me the fallowing error messages(for some reason ,i don't understand why, they're printed in the editor i use for writting the php scripts and not in the browser):
<br />
<b>Notice</b>: Undefined variable: nome_file in <b>D:.......scarica.php</b> on line <b>3</b><br />
<br />
<b>Notice</b>: Undefined variable: nome_file in <b>D:.......scarica.php</b> on line <b>4</b><br />
what did i do wrong??
could u pls help me?
thanks