note 102536 rejected from function.substr by danbrown
[email protected] Sat, 19 Feb 2011 18:36:20 -0800
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
Note Submitter: brianjoe at live dot dk
----
Hi, I want to grab some content from my site to another site in that way your do with the numbers. Is that possible?
If so, how can this be done?:
$source = file_get_contents("http://www.test.com");
And get the content between fx <div class="sidebar">(GRAB THIS)</div>