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 6662527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:23:56+00:00 2026-05-26T02:23:56+00:00

Hello I would like to get the XML feed for my site: http://buildworx-mc.com/forum/syndication.php?fid=4&limit=5 And

  • 0

Hello I would like to get the XML feed for my site:

http://buildworx-mc.com/forum/syndication.php?fid=4&limit=5

And display them in this format:

<ul>
   <li><a href="linktothread"> Topic 1 </a> </li>
   <li><a href="linktothread"> Topic 2 </a> </li>
   <li><a href="linktothread"> Topic 3 </a> </li>
</ul>

I guess the best/easiest method to do this is using PHP, so how can I get the XML and display them in list items? It’ll be displayed on http://example.com while the feed is http://example.com/forum

I tried the other answers from other questions asked, but nothing seems to work for me.

  • 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-05-26T02:23:57+00:00Added an answer on May 26, 2026 at 2:23 am

    You may need to use the command “file_get_contents” to get a copy of the remote file in order to parse it using PHP. I’m surprised this step is necessary since you say you want to display items from your forum on your site so you might be able to set the ‘feed’ variable to the direct link, assuming everything is under the same domain. If not, this ought to work.

        $feed = file_get_contents('http://buildworx-mc.com/forum/syndication.php?fid=4&limit=5');
        $xml = simplexml_load_string($feed);
    
        $items = $xml->channel->item;
    
        foreach($items as $item) {
          $title = $item->title;
          $link = $item->link;
          $pubDate = $item->pubDate;
          $description = $item->description;
    
          echo  $title . "<br>";
    
         // continue to format as an unordered list
    
          }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I would like to use preg_match in PHP to parse the Desired text
Hello I would like to display an other splashscreen after the default one, if
hello i would like to know if there is any dll or global hook
Hello I would like to use the sass module in a play application. We
Hello I would like to know if my script is good; I want to
Hello I have a datatable that I would like to filter with a single
In the following code I would like to hide Hello world but keep visible
Hello! I would like to extract all citations from a text. Additionally, the name
Hello I have 2 lists that contains the same objects. I would like to
I have an XML structure like the following: <Root> <Base> <Greeting>Base Hello!</Greeting> <SpecialMessage>Base Special

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.