How to attain the contents of a div from an external web pag

General discussions related to php

Moderators: macek, egami, gesf

Post Reply
johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: How to attain the contents of a div from an external web

Post by johnj » Wed Aug 22, 2012 9:07 pm

First, verify if the page is actually fetched. Check whether your $data has the page.

Then, start simple. try to use regular expression to match a simple <div> and then try the pattern that you want.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests