Jump to content

shoutbox include html page without breakign code!


plarzlover

Recommended Posts

Hi I have a shoutbox at www.plarz.it in the middle of the page... it always worked by including the page http://www.plarz.it/shouter/db

then i discovered that by using frames the shoutbox content wasn't crawled by google...

so I needed something to include the first N lines of /shouter/db to the main page index.php

 

I came up with this solution.. I put in index.php the following

 

<?php
$shoutbox = "shouter/db";
        $fh = fopen($shoutbox, 'r');
        $shoutposts = fread($fh, 1500);
        fclose($fh);
        echo $shoutposts;
?>

 

this works however sometimes it cuts posted flash videos and long codes like

 

<embed src="http://widget-c7.slide.com/widgets/slideticker.swf" type="application/x-shockwave-flash" quality="high" scale="noscale" salign="l" wmode="transparent" flashvars="site=widget-c7.slide.com&channel=288230376161191367&cy=be&il=1" width="400" height="300" name="flashticker" align="middle"/><div style="width:400px;text-align:left;">

 

is there a way to make it include the first N lines without cutting html objects????

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.