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????

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.