static function GetFileContent($filename,&$error = null,&$error_str = null){
		$error = false;
		$error_str = "";

		$out = "";
		
		settype($filename,"string");

		if(!is_file($filename)){
			$error = true;
			$error_str = "$filename is not a file";
			return null;		
		}

		$filesize = filesize($filename);
		if($filesize==0){ return ""; }

		$f = fopen($filename,"r");
		if(!$f){
			$error = false;
			$error_str = "can't open file $filename for writing";
			return $out;
		}
		$out = fread($f,$filesize);
		fclose($f);

		return $out;
	}
static function GetFileContent($filename,&$error = null,&$error_str = null){
		$error = false;
		$error_str = "";

		$out = "";
		
		settype($filename,"string");

		if(!is_file($filename)){
			$error = true;
			$error_str = "$filename is not a file";
			return null;		
		}

		$filesize = filesize($filename);
		if($filesize==0){ return ""; }

		$f = fopen($filename,"r");
		if(!$f){
			$error = false;
			$error_str = "can't open file $filename for writing";
			return $out;
		}
		$out = fread($f,$filesize);
		fclose($f);

		return $out;
	}
static function GetFileContent ( $ filename , & $ error = null , & $ error_str = null ) { $ error = false ; $ error_str = "" ; $ out = "" ; settype ( $ filename , "string" ) ; if ( ! is_file ( $ filename ) ) { $ error = true ; $ error_str = "$filename is not a file" ; return null ; } $ filesize = filesize ( $ filename ) ; if ( $ filesize == 0 ) { return "" ; } $ f = fopen ( $ filename , "r" ) ; if ( ! $ f ) { $ error = false ; $ error_str = "can't open file $filename for writing" ; return $ out ; } $ out = fread ( $ f , $ filesize ) ; fclose ( $ f ) ; return $ out ; }
Reads content of a file.

@param string $filename Name of a file
@param boolean &$error Error flag
@param string &$error_str Error description
@return string Content of a file
Reads content of a file .