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

  • Home
  • SEARCH
  • 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 7695969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:40:14+00:00 2026-05-31T21:40:14+00:00

There is site , shop.test.com.au (not a real name) when ever i tried to

  • 0

There is site , shop.test.com.au (not a real name)

when ever i tried to take the site through
http://shop.test.com.au/ , it will change to shop.test.com.au in the browser

They providing an xml page link on that site

I need to access that xml from my php page

Following is my code

$doc = new DOMDocument();
$doc->load('shop.test.com.au/1.xml');

Then it will return an error “failed to open stream: No such file or directory“, may be it is checking in my local machine.So i changed the code to

 $doc = new DOMDocument();
 $doc->load('http://shop.test.com.au/1.xml');

Then i gets an error “failed to open stream: HTTP request failed!“

How can i solve it?

  • 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-31T21:40:16+00:00Added an answer on May 31, 2026 at 9:40 pm

    the best would be to use CURL, make sure you have CURL installed and then use this

    $curl = curl_init();
    
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($curl, CURLOPT_URL, "http://shop.test.com.au/1.xml");
    
    $xml = curl_exec($curl);
    
    curl_close($curl);
    

    And there you go – $xml should be having the data you desire.

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

Sidebar

Related Questions

from this site there is header compress.h http://www.fredosaurus.com/notes-cpp/examples/compress/compress.html i am using visual c++ 2010
Is there a web site or tool that will convert a piece PHP code
There is an existing site h*tp://www.oldsite.com/ which I need to redirect to the new
I have the following for www.domain.com and login.domain.com . But spammers forward there site
I am trying to fix this product listing: http://shop.crystalvine.com/salt/blueberrysalt-c.html You see in the dropdown
For a site with shopping cart we have https working on the domain.com/shop-2/cart location.
On my site there is a static div which functions as a header. Where
Is there a site that would allow you to search for arrow, for example,
I am very new to Ajax technique Is there any site or online documents
i'm trying to create downloadable video-files. In my site there is a list of

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.