HEX
Server: Apache
System: Linux vps52061 6.8.0-85-generic #85~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 19 16:18:59 UTC 2 x86_64
User: design11 (105868)
PHP: 8.4.14
Disabled: NONE
Upload Files
File: /home/design11/kmediabuzz.com/test2.php
<?php
 
// Make sure SimplePie is included. You may need to change this to match the location of simplepie.inc.
require_once('php/simplepie.inc');
 
// We'll process this feed with all of the default options.
$feed = new SimplePie();
 
// Set the feed to process.
$feed->set_feed_url('http://feeds.feedburner.com/kmediabuzz');
 
// Run SimplePie.
$feed->init();
 
// This makes sure that the content is sent to the browser as text/html and the UTF-8 character set (since we didn't change it).
$feed->handle_content_type();
 
// Let's begin our XHTML webpage code.  The DOCTYPE is supposed to be the very first thing, so we'll keep it on the same line as the closing-PHP tag.
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
        "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<title>Sample SimplePie Page</title>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
 
	
 
</head>
<body>
 <div id="contents" style=" height:200px; width:100%">
 
 <div id="social-count" style="width:15%; height:100%; float:left; text-align:left">
 
 <script type="text/javascript">
tweetmeme_url = <data:post.url/>;
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"> </script>
<br />
<data:post.body/>

<!-- Facebook share button Start -->
<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<div style='float:left;padding:5px 5px 5px 0;'>
<a expr:share_url='data:post.url' href='http://www.facebook.com/sharer.php' name='fb_share' type='box_count'>Share</a><script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'></script>
</div>
</b:if>
<!-- Facebook share button Start -->

 </div>
 
 <div class="header" style=" float:left; width:85%;">
        
		<p><?php echo $feed->get_description(); ?></p>
        
        
	<?php
	$max = $feed->get_item_quantity(5);
	for ($x = 0; $x < $max; $x++):
		$item = $feed->get_item($x);
		?>
 
		<div class="item" style="padding:5px 0;
		border-bottom:1px solid #999;">
			<h2 class="title"><a href="<?php echo $item->get_permalink(); ?>"><?php echo $item->get_title(); ?></a></h2>
			<?php echo $item->get_description(); ?>
            	<small>Posted on <?php echo $item->get_date('j F Y | g:i a'); ?></small>
            
            
           <!-- AddToAny BEGIN -->
<div class="a2a_kit a2a_default_style">
<a class="a2a_dd" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.kmediabuzz.com%2Ftest2.php&amp;linkname=">Share</a>
<span class="a2a_divider"></span>
<a class="a2a_button_facebook"></a>
<a class="a2a_button_twitter"></a>
<a class="a2a_button_email"></a>
<a class="a2a_button_blogger_post"></a>
<a class="a2a_button_digg"></a>
</div>
<script type="text/javascript">
var a2a_config = a2a_config || {};
a2a_config.linkurl = "http://www.kmediabuzz.com/test2.php";
a2a_config.onclick = 1;
</script>
<script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>
<!-- AddToAny END -->
		</div>
 
	<?php endfor; ?>

	
    </div>
 </div>
 
 
	
 
 
</body>
</html>