emer píše:
Kód:
....
if(strtolower(end(explode('.', $filename))) == 'php'){
move_uploaded_file(....)...
}...
Kód:
$filename = $HTTP_POST_FILES["filename"];
aj takto ?
moj kod ... ale neviem kde to mam vlozit ...
Kód:
if($_GET['info'] == 'ferror') {
$result .= "File that you want to check is too large";
}
echo $result;
exit;
}
if(isset($_POST['upload'])) {
if ($HTTP_POST_FILES["filename"]["size"] > 180 * 1024) {
$result .= "ferror";
$error = 1;
}
if($error == 0) {
$result .= md5_file($HTTP_POST_FILES["filename"]["tmp_name"]);
}