• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Kodzik php

lol, hardkorowościowo....
PHP:
$nazwaserwera = "Moj OTS";
$pass = $_POST['password'];
header("Content-Type: application/force-download"); 
header('Content-Description: File Transfer'); 
header("Content-Disposition: attachment; filename=password_ots.txt;" );
echo "Twoje hasło do serwera {$nazwaserwera} to: {$pass}. Nie podawaj go nikomu";
 
Jest problem w pliku zapisuje sie notka echo "Twoje hasło do serwera {$nazwaserwera} to: {$pass}. Nie podawaj go nikomu";
ale tez caly szablon strony php ;/ wtf?
 
Jest problem w pliku zapisuje sie notka echo "Twoje hasło do serwera {$nazwaserwera} to: {$pass}. Nie podawaj go nikomu";
ale tez caly szablon strony php ;/ wtf?
no bo to musisz zrobić oddzielny pliczek php, zamiast $_POST dać $_GET i potem parametry przekazać w linku do pobrania ?pass=xxx&nazwa=xxx

w tym pliku musi być tylko kod z downloadem, żadnego szablonu itd.



PHP:
echo 'Twoje hasło do serwera '.$nazwaserwera.' to: '.$pass;
nie trudź się jak się nie znasz ;)
 
Przecież Ci Azi dokładnie napisał co masz zrobić, w czym problem ?
 
Back
Top