User:AaronF > Content Transforms

Content Transforms

Content transforms make it easy to author dynamically generated content.

PHP Syntax Formatting

$stringWithUrl = "http://blog.dreamprojections.com";
$stringWithUrl = 'http://www.dreamprojections.com';

ob_start("parseOutputBuffer");		// Start Code Buffering
session_start();

function parseOutputBuffer($buf) {
	global $portal_small_code, $portal_gzcompress;
	global $PHP_SELF, $HTTP_ACCEPT_ENCODING;

	// cleaning out the code.
	if($portal_small_code && !$portal_gzcompress) {
		$buf = str_replace("	", "", $buf);
		$buf = str_replace("\n", "", $buf);
		$buf = str_replace(chr(13), "", $buf);
	}
}

Math Equations

Automatic Graphs

Tag page
Viewing 1 of 1 comments: view all
Creating a new content transform is as easy as registering a new extension in the services management console of the control panel.
Posted 20:53, 1 May 2008
Viewing 1 of 1 comments: view all
You must login to post a comment.
Powered by MindTouch Deki v.8.08.2