references:joomla.framework:filesystem:jfile-existsexists
This function is a wrapper for the standard PHP file_exists function. If the file exists, the function returns true. Otherwise, it returns false. Syntaxboolean exists ( $file )
ExamplesExample: This example checks if a file exists. Example if (JFile::exists( 'images/stories/clock.jpg' )) { echo "<h3>File exists!</h3>"; } else { echo "<h3>File does not exist!</h3>"; } Discussion |


