Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8136955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T10:55:42+00:00 2026-06-06T10:55:42+00:00

Hey I wrote this to grab get a FB page feed and output it

  • 0

Hey I wrote this to grab get a FB page feed and output it to a site.

It works just fine from my localhost, but not when placed it on the server. It’s just blank.

<?php
$xml_url = "http://fbrss.com/f/7f823b5ba0557decbd324199136326ac_7LpQh7MAJ22MISS1omjI.xml";
$xml = simplexml_load_file($xml_url);

$json = json_encode($xml);
$objects = json_decode($json,TRUE);
$object = $objects;

$i=0;
foreach ($object as $items) {
    $json = json_encode($items);
    $objects = json_decode($json,TRUE);
    $object = $objects;
    $i=0;
    foreach ($object as $items) {
        $item[$i] = $items;
        $i++;
    }

}
$entries = $item[5];
foreach ($entries as $entry) {
    echo '<a href="'.$entry["guid"].'">', substr($entry["title"], 0, 50), '...</a><br /><span>', substr($entry["pubDate"], 4, 18),'</span><br /><hr /><br />';
}   
?>

My questions are 1) why doent it work live, and 2) is there a better way to do this?

UPDATE

Ok I have pulled the error log, and this is what I am getting:

[Mon Jun 25 03:08:20 2012][debug] mod_deflate.c(615): [client 74.192.47.34] Zlib: Compressed 0 to 2 : URL /*/*/xmlFeed.php (* added by me)

So… its a compression issue? What does it mean, and what can I do?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T10:55:44+00:00Added an answer on June 6, 2026 at 10:55 am

    Try this, it will work.

    <?php
    $xml_url = "http://fbrss.com/f/7f823b5ba0557decbd324199136326ac_7LpQh7MAJ22MISS1omjI.xml";
    $xml = simplexml_load_file($xml_url);
    
    foreach ($xml->channel->item as $item) {
        echo '<a href="'.$item->guid.'">', substr($item->title, 0, 50), '...</a><br /><span>', substr($item->pubDate, 4, 18),'</span><br /><hr /><br />';
    }
    ?>
    

    Short, sweet, simple.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey all. I wrote this program for an online contest. It RUNS FINE on
Hey, I just wrote a horizontal progress bar. The progressbar gets this background resource:
Hey guys I'm not sure how to write this in AS3, but basically I
Hey guys I have a weird error I wrote this code against setbubblepopup $(document).ready(function
Hey guys - I just wrote an app using c# and ready to deploy
Hey, I'm trying to read a EAN-13 barcode from my webcam. I already wrote
Hey, I recently wrote this fairly simple game of life in JavaScript. Within this
Hey guys, PHP and MySQL newguy here. Wrote this php file which display the
hey guys, i'm loading a div from a subsite with ajax. this subsite has
Hey guys, I have a GridView which is binded to SqlDataSource, everything works fine,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.