If File Exists

Software Screenshot:
If File Exists
Software Details:
Version: 2.2.2
Upload Date: 28 Feb 15
Developer: Scott Reilly
Distribution Type: Freeware
Downloads: 13

Rating: 1.0/5 (Total Votes: 1)

If File Exists makes available to developers the c2c_if_file_exists() WordPress-specific PHP function that can be used to check the presence of a file in the upload directories.

Variants of the function are also available to check for files in the themes and plugins directory as well:
c2c_if_theme_file_exists()
c2c_if_plugin_file_exists()

If the file the developer was searching for is not found, the function returns "0".

If the file is found, the function returns "1", along with information about file name, file disk path and file URL.

The plugin does not have a visual interface and is basically a programming tool for WP developers.

Installation:

Unpack and upload it to the /wp-content/plugins/ directory.
Activate the plugin through the 'Plugins' menu in WordPress.

What is new in this release:

  • Fix to set $dir to directory when passed as part of filename and not via $dir arg
  • Fix in c2c_if_plugin_file_exists() to ensure files are relative to WP_PLUGIN_DIR
  • Fix to use add_filter() instead of apply_filters() to enable filter invocation technique
  • Convert existing makeshift unit tests to PHPUnit unit tests
  • Remove c2c_test_if_file_exists()
  • Use site_url() to get site URL instead of the option
  • Note compatibility through WP 3.8+
  • Update copyright date (2014)
  • Minor readme.txt tweaks

What is new in version 2.1.2:

  • Add 'License' and 'License URI' header tags to readme.txt and plugin file
  • Remove ending PHP close tag
  • Note compatibility through WP 3.4+

What is new in version 2.1.1:

  • Compatibility through WP 3.3+.
  • Added link to plugin directory page to readme.txt.
  • Updated copyright date (2012).

What is new in version 2.1:

  • Minor bugfix to prevent PHP warning when a file has no extension
  • Fix all functions to properly handle boolean $dir argument
  • Add c2c_test_if_file_exists() to perform some (15) simple tests on the provided functions
  • Disable unnecessarily outputting error message when default upload directory is not present -- the file should just not exist
  • Note compatibility through WP 3.2+
  • Call _deprecated_function() within if_file_exists() to generate proper notice/warning
  • Minor code formatting changes (spacing)
  • Update copyright date (2011)
  • Add plugin homepage and author links in description in readme.txt

What is new in version 1.0.3:

  • Add PHPDoc documentation
  • Change description and update documentation
  • Minor formatting tweaks
  • Note compatibility with WP 2.9+
  • Update copyright date
  • Update readme.txt (including adding Changelog)

Requirements:

  • WordPress 2.7 or higher

Similar Software

Easy Retweet
Easy Retweet

28 Feb 15

I Recommend This
I Recommend This

12 May 15

Smart Editor
Smart Editor

13 May 15

Other Software of Developer Scott Reilly

Comments to If File Exists

Comments not found
Add Comment
Turn on images!