Bekmurod
Fayl yoki Katolok yaratilganmi yo`qmi tekshirish:
  1. <?php
  2. $faylnomi = '/katolok/test.txt';
  3.  
  4. if (file_exists($faylnomi)) {
  5. echo "Fayl $faylnomi mavjud";
  6. } else {
  7. echo "Fayl $faylnomi mavjud emas!";
  8. }
  9. ?>

Bu yerda tekshirish uchun ishlatilgan funcsiya file_exists();