PHP   23

myfile

Guest on 24th August 2022 12:34:48 PM

  1. <?php
  2. $myfile = '/doc/candidate.doc';
  3. if (file_exists($myfile))
  4. {
  5.    echo "$myfile exists!";
  6. } else
  7.  {
  8.    echo "$myfile does not exist!";
  9. }
  10. ?>

Raw Paste


Login or Register to edit or fork this paste. It's free.