Announcement

Collapse
No announcement yet.

file exists

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • file exists

    is there a way to figure out if a file exists or not?

  • #2
    http://www.php.net/manual/function.file-exists.php

    RTFM!

    -jim
    "The dot-com bust has cleared out the carpetbaggers and left the Internet to those who really care about it"
    - Jon Ippolito, new-media curator, Guggenheim Museum

    Comment


    • #3
      As printed in the php manual (available at php.net):

      file_exists (PHP 3, PHP 4 )

      Checks whether a file exists

      bool file_exists (string filename)

      Returns true if the file specified by filename exists; false otherwise.

      file_exists() will not work on remote files; the file to be examined must be accessible via the serverís filesystem.
      The results of this function are cached. See clearstatcache() for more details.
      Play around with that for a bit and see if it does what you need it to.

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X