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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:46:24+00:00 2026-05-22T01:46:24+00:00

Folks, I am using SIMPLEHTMLPARSER. I am not able to parse HTML, When i

  • 0

Folks,

I am using SIMPLEHTMLPARSER.

I am not able to parse HTML, When i var_dump the html document, it just shows the DOM structure and no HTML content.

$produrl = 'http://wap.ebay.com/Pages/ViewItem.aspx?aid=160586179890&sv=160586179890/';

var_dump(file_get_html($produrl));




   $html = file_get_html($produrl);
    var_dump($html->find('div[id=Teaser_Item] img[src]', 0));

Actually, what i want to extract is the IMG SRC which is:

http://wap.ebay.com/Pages/RbHttpHandler.ashx?width=51&height=240&fsize=999000&format=jpg&url=http%3A%2F%2Fi.ebayimg.com%2F00%2F%24%28KGrHqN%2C!jEE2n%28iTLozBNwBPG0bUg~~0_1.JPG%3Fset_id%3D8800005007

can someone help me debugging this, please?

Cheers
Natasha Thomas

  • 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-22T01:46:24+00:00Added an answer on May 22, 2026 at 1:46 am
    <?php
     require_once('simple_html_dom.php');
    
     $produrl = 'http://wap.ebay.com/Pages/ViewItem.aspx?aid=160586179890&sv=160586179890/';
    
     // Grab the document
     $html = file_get_html($produrl);
    
     // Find the img tag in the Teaser_Item div
     $a = $html->find('div[id=Teaser_Item] img', 0);
    
     // Display the src
     echo($a->attr['src']);
    
     ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wanted to see if folks were using decimal for financial applications instead of
I'm wondering how many folks using the Microsoft development stack (IIS and/or ASP.NET) are
I was simply wondering what methods folks are using to test their javascript's execution
Folks, in my application I'm using clock_gettime(CLOCK_MONOTONIC) in order to measure the delta time
Folks, Debugging a .net 4.0 app using WinDbg (I'm a beginner to WinDbg). I'm
Other folks have asked about using SQL and NoSQL together, and subsequently whether there's
Folks, I'm using SOAPClient in PHP to call a .NET webservice. All fine and
Folks, I'm using the best-practice of prepared sql statements to execute many Inserts/Updates that
Folks, I'm using git tools such as git bisect run which need to call
Folks, Lets say I store three new instances of object Car using CallContext.SetData() from

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.