Hi blm126!
When replacing
Code:
<?php show_pagecontent(x) ?>
with
Code:
<?php
ob_start();
show_pagecontent(x)
$output = ob_get_contents();
ob_end_clean();
$output = str_replace("\n", "", $output);
$output = str_replace("\r", "", $output);
echo $output;
?>
the whole page disapear (blank page, nothing parsed)... The beginning of the script then looks like this
Code:
<script type="text/javascript">
/*Example message arrays for the two demo scrollers*/
var pausecontent=new Array()
pausecontent[0]='<?php
ob_start();
show_pagecontent(x)
$output = ob_get_contents();
ob_end_clean();
$output = str_replace("\n", "", $output);
$output = str_replace("\r", "", $output);
echo $output;
?> '
pausecontent[1]='<a href="http://www.codingforums.com">Coding Forums</a><br />Web coding and development forums.'
pausecontent[2]='<a href="http://www.cssdrive.com" target="_new">CSS Drive</a><br />Categorized CSS gallery and examples.'
Regards Vidar
Bookmarks