0 like 0 dislike
49 views
<?php

class third_party_controller extends CI_Controller {

function __construct() {
parent::__construct();

//  Path to simple_html_dom
include APPPATH . 'third_party/simple_html_dom.php';
}

function index() {

//  Create object of Simple_html_dom class
$html = new Simple_html_dom();

//  Use Simple_html_dom class function load_file
$html->load_file('http://www.google.com');

//  Use Simple_html_dom class function
foreach ($html->find('img') as $element) {
echo $element->src . '<br>';
}
}

}
?>

 

in Computers & Internet by (2.4k points) | 49 views

Please log in or register to answer this question.

Related questions

0 like 0 dislike
1 answer
asked Sep 4, 2019 in Computers & Internet by Neha (620 points) | 43 views
0 like 0 dislike
0 answers
0 like 0 dislike
1 answer
asked Feb 7, 2014 in Computers & Internet by amolk (80 points) | 295 views
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
asked Jun 26, 2019 in Education & Reference by Simmi (520 points) | 48 views
0 like 0 dislike
1 answer
asked May 29, 2019 in Education & Reference by Marc (2.4k points) | 66 views
0 like 0 dislike
1 answer

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

1,202 questions
1,347 answers
553 comments
1,994 users