english/libraries/joomla/filesystem/streams/string.php
/**
	 * Method to rerieve information about a file.
	 *
	 * @param   string   $path   File path or URL to stat
	 * @param   integer  $flags  Additional flags set by the streams API
	 *
	 * @return  array
	 *
	 * @since   11.1
	 *
	 * @see     http://php.net/manual/en/streamwrapper.url-stat.php
	 */
Method to rerieve information about a file.
@param   string   $path   File path or URL to stat
@param   integer  $flags  Additional flags set by the streams API

@return  array




Method to rerieve information about a file . @param string $path File path or URL to stat @param integer $flags Additional flags set by the streams API @return array
function url_stat($path, $flags = 0)
	{
		$now = time();
		$string = &JStringController::getRef(str_replace('string://','',$path));
		$stat = array(
			'dev'		=> 0,
			'ino'		=> 0,
			'mode'		=> 0,
			'nlink'		=> 1,
			'uid'		=> 0,
			'gid'		=> 0,
			'rdev'		=> 0,
			'size'		=> strlen($string),
			'atime'		=> $now,
			'mtime'		=> $now,
			'ctime'		=> $now,
			'blksize'	=> '512',
			'blocks'	=> ceil(strlen($string) / 512)
		);
		return $stat;
	}
function url_stat ( $ path , $ flags = 0 ) { $ now = time ( ) ; $ string = & JStringController :: getRef ( str_replace ( 'string://' , '' , $ path ) ) ; $ stat = array ( 'dev' => 0 , 'ino' => 0 , 'mode' => 0 , 'nlink' => 1 , 'uid' => 0 , 'gid' => 0 , 'rdev' => 0 , 'size' => strlen ( $ string ) , 'atime' => $ now , 'mtime' => $ now , 'ctime' => $ now , 'blksize' => '512' , 'blocks' => ceil ( strlen ( $ string ) / 512 ) ) ; return $ stat ; }
Method to rerieve information about a file.
Method to rerieve information about a file .