още по зле ...
Parse error: parse error, unexpected T_VARIABLE in /home/www/djvato.freehostia.com/kachi/index.php on line 27
Parse error: parse error, unexpected T_VARIABLE in /home/www/djvato.freehostia.com/kachi/index.php on line 27
Код:
<div align="center">
<h1> - FREE Upload of Pictures and Files - </h1>
<img src="http://djvato.freehostia.com/freeup.gif" /><br>
<a href="http://djvato.freehostia.com/">Home</a><br>
<a href="http://djvato.freehostia.com/forum">Forum</a><br>
<a href="http://djvato.freehostia.com/zapis/form.html">Zapishi se</a><br>
<a href="http://djvato.freehostia.com/kachi">Upload File</a><br>
</div>
<center><form enctype="multipart/form-data" action="gotovo.php" method="post" >
<input type="hidden" name=:MAX_FILE_SIZE" value="999999" />
Send this file:<input type="file" name="book_image" /><br />
<input type="submit" value="Upload" />
</form> </center>
<?php
echo '
<table width="600" border="1" cellpadding="4" cellspacing="2">
<tr>
<td>Файл</td>
<td>Големина</td>
<td>Тип</td>
<td>CHMOD</td>
<td>Качен на </td>
</tr>';
$dir = scandir(''); или $dir = scandir('http://djvato.freehostia.com/kachi/files/');
$files = count( $dir );
for ( $i = 2; $i < $files; $i++ )
{
$size = filesize($dir[$i]);
$type = filetype($dir[$i]);
$chmod = substr(sprintf('%o', fileperms($dir[$i])), -4);
$time = date ("F d Y H:i:s.", filemtime($filename));
echo "
<tr>
<td><a href=\"$dir[$i]\"/>$dir[$i]</a></td>
<td>$size b</td>
<td>$type</td>
<td>$chmod</td>
<td>$time</td>
</tr>";
}
echo '</table>';
?>