0 like 0 dislike
35 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>';
}
}

}
?>

 

asked Nov 4, 2017 in Computers & Internet by Marc (2,460 points) | 35 views
Looking for an answer?  Share this question:     

Your answer

Preview

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

Related questions

0 like 0 dislike
0 answers
0 like 0 dislike
1 answer
asked Feb 7, 2014 in Computers & Internet by amolk (80 points) | 266 views
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
1 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

Mathe Forum Schule und Studenten
1,171 questions
1,311 answers
276 comments
1,603 users