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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:24:20+00:00 2026-05-27T08:24:20+00:00

I am using PHP XML DOM to read the content of RSS Feed. It

  • 0

I am using PHP XML DOM to read the content of RSS Feed. It works fine in my local server, but the hosting server it gives error like below

Warning: DOMDocument::load() [(B)domdocument.load]: URL file-access is disabled in the server configuration in ....

After searching for that issue I found that the hosting server normally disabled that feature file_access.
What is the alternate method to read RSS content without changing the server configuration.

Here is my code snippet.

function readRSS ($rssURL, $entryno)
{
    //$xml ="http://feeds.feedburner.com/OnlyMyHealth-Diabetes";
     $xmlDoc = new DOMDocument();
     $xmlDoc->load($rssURL);
}
  • 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-27T08:24:20+00:00Added an answer on May 27, 2026 at 8:24 am

    You can use cURL, which is very powerful, and will probably be enabled (altho you can always test on your host)

    One tutorial here:
    http://ditio.net/2008/06/19/using-php-curl-to-read-rss-feed-xml/

    But basically you do something similar to your DOMDocument() approach but with cURL.

    UPDATE

    You could also just cURL the RSS feed to a local folder, and use DOMDocument on the local file as it sounds like its only URL disabled (remote files). Local might work just fine.

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

Sidebar

Related Questions

I'm using php DOM to build an XML file of data, it works fine
Ho to make this simple xml with php using DOM? Full code will be
I am trying to load a xml document I created using PHP and DOM
I'm parsing XML results from an API call using PHP and xpath. $dom =
I'm using a PHP script with SimpleXML to parse an XML feed. I have
how do i check using php dom, if an xml file exists, and if
I am trying to generate a Google Merchant RSS Feed, using PHP's SimpleXML and
I am using PHP Version 5.3.2-1ubuntu4.11 LibXML is enabled: dom DOM/XML enabled DOM/XML API
Possible Duplicate: How to extract a node attribute from XML using PHP's DOM Parser
I am trying to parse XML using PHP DOM and then insert this data

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.