developer
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>sonni aniqlab yozmasini topish</title>
  5. </head>
  6. <body>
  7. <form>
  8. <input type="text" name="soz">
  9. <input type="submit" name="ok">
  10. </form>
  11. </body>
  12. </html>
  13. <?php
  14. if(isset($_GET['ok'])){
  15.  
  16. $file = fopen('config.txt', 'r');
  17. $handle = fread($file, filesize('config.txt'));
  18. //print_r($handle);
  19. $r = explode(" ", $handle);
  20. if ($_GET['soz'] == $r['1']) {
  21. echo "Dastur aktivlandi!";
  22. }
  23. else{
  24. echo "Kalit xato!";
  25. }
  26. fclose($file);
  27.  
  28. }
  29. ?>