public function verify($path) {
		$full_path = realpath($path);
		$data = @getimagesize($full_path);
		if (!$data) {
			throw new FileException(sprintf('File "%s" cannot be read.', $path), 1);
		}
		if ($data[2] != IMG_JPG) {
			throw new FileException(sprintf('File "%s" is not a JPG.', $path), 240);
		}
		if ($data[0] < 600 || $data[1] < 600) {
			throw new FileException(sprintf('File "%s" is too small.', $path), 241);
		}
		return $full_path;
	}
public function verify($path) {
		$full_path = realpath($path);
		$data = @getimagesize($full_path);
		if (!$data) {
			throw new FileException(sprintf('File "%s" cannot be read.', $path), 1);
		}
		if ($data[2] != IMG_JPG) {
			throw new FileException(sprintf('File "%s" is not a JPG.', $path), 240);
		}
		if ($data[0] < 600 || $data[1] < 600) {
			throw new FileException(sprintf('File "%s" is too small.', $path), 241);
		}
		return $full_path;
	}
public function verify ( $ path ) { $ full_path = realpath ( $ path ) ; $ data = @ getimagesize ( $ full_path ) ; if ( ! $ data ) { throw new FileException ( sprintf ( 'File "%s" cannot be read.' , $ path ) , 1 ) ; } if ( $ data [ 2 ] != IMG_JPG ) { throw new FileException ( sprintf ( 'File "%s" is not a JPG.' , $ path ) , 240 ) ; } if ( $ data [ 0 ] < 600 || $ data [ 1 ] < 600 ) { throw new FileException ( sprintf ( 'File "%s" is too small.' , $ path ) , 241 ) ; } return $ full_path ; }
Verify the file at a path.

@param string $path
@return string
@throws FileException
Verify the file at a path .