Claim your Biolink Click Here
0 like 0 dislike
152 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 (4.6k points) | 152 views

Please log in or register to answer this question.

Related questions

0 like 0 dislike
1 answer
asked Sep 5, 2019 in Computers & Internet by Neha (1.1k points) | 226 views
0 like 0 dislike
0 answers
0 like 0 dislike
1 answer
asked Feb 7, 2014 in Computers & Internet by amolk (0 points) | 460 views
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
1 like 0 dislike
1 answer
1 like 0 dislike
1 answer
asked Jun 17, 2021 in Education & Reference by Simmi (810 points) | 249 views

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,306 questions
1,464 answers
568 comments
4,809 users