src/FS/File/SyntaxChecker.php
public function checkFile( $fileName )
	{
		$output = shell_exec('php -l "'.$fileName.'"');
		if( preg_match( "@^No syntax errors detected@", $output	) )
			return TRUE;
		$this->error	= $output;
		return FALSE;
	}
public function checkFile( $fileName )
	{
		$output = shell_exec('php -l "'.$fileName.'"');
		if( preg_match( "@^No syntax errors detected@", $output	) )
			return TRUE;
		$this->error	= $output;
		return FALSE;
	}
public function checkFile ( $ fileName ) { $ output = shell_exec ( 'php -l "' . $ fileName . '"' ) ; if ( preg_match ( "@^No syntax errors detected@" , $ output ) ) return TRUE ; $ this -> error = $ output ; return FALSE ; }
Returns whether a PHP Class or Script has valid Syntax.
@access		public
@param		string		$fileName		File Name of PHP File to check
@return		bool
Returns whether a PHP Class or Script has valid Syntax .