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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:52:30+00:00 2026-06-11T16:52:30+00:00

I am developing an application and I need to fetch of data from another

  • 0

I am developing an application and I need to fetch of data from another source / website. I did google and tested a few options like file_get_contents / Curl. Its clear that curl is much faster compared to file_get_contents.

Now, What I need to fetch is a certain list of contents, like a list of items inside a div. I would like to ignore the HEAD info/scripts/css etc. Just need to fetch the data and style it in my own theme.

Please tell me the best method / function to get contents and style the output. If you can spare sometime and write a basic code it will be really helpful…

Thanks in advance

  • 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-11T16:52:31+00:00Added an answer on June 11, 2026 at 4:52 pm

    I would use an HTML Parser. I use Simple HTML DOM PARSER : http://simplehtmldom.sourceforge.net/ and it’s great. Also has a great documentation. It gives this example in its homepage:

    // Create DOM from URL or file
    $html = file_get_html('http://www.google.com/');
    
    // Find all images 
    foreach($html->find('img') as $element) 
           echo $element->src . '<br>';
    
    // Find all links 
    foreach($html->find('a') as $element) 
           echo $element->href . '<br>';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a simple application that fetches some data from wowarmory.com. What I need
iam developing one application.In that i need to get the music files from the
I am developing an android application and i need to read words from a
I am developing an application where I need to generate an Image from text
I am developing an application that need a certificate verification from the server. It
I'm developing an application where I need to cache the response from urls the
I am developing an application for iPhone.I need to remove html entities like [<p>]
I am developing one iPhone application where I need to send some data (in
I'm developing iPad application I need to integrate third party project(Source code) with my
I am developing a web based application whose primary objective is to fetch 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.