# \[PHP\] looting SPECIFIC information from outside source of file?

**URL:** <https://forum.kirupa.com/t/php-looting-specific-information-from-outside-source-of-file/250930>\
**Category:** programming\
**Created:** [February 3, 2008, 5:45pm UTC](https://forum.kirupa.com/t/php-looting-specific-information-from-outside-source-of-file/250930 "2008-02-03T17:45:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sixtys](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@Sixtys](https://forum.kirupa.com/u/Sixtys)\
**Post date:** [February 3, 2008, 5:45pm UTC](https://forum.kirupa.com/t/php-looting-specific-information-from-outside-source-of-file/250930/1 "2008-02-03T17:45:23Z")

</div>

yeah, title says it all i guess.

I have absolutly no idea what im doing but i figure im going to have to do something like this (even though i dont know the proper functions)

[FONT=verdana][SIZE=2][COLOR=#000000]1. read the file [/COLOR][/SIZE][/FONT]  
[SIZE=2][FONT=verdana][COLOR=#000000]2. create a function to find the parts of the file i want [/COLOR][/FONT][/SIZE]  
[SIZE=2][FONT=verdana][COLOR=#000000]example of this: [/COLOR][/FONT][/SIZE]

```auto
 
GET TEXT after... 
"<div class="f"><span class="iesucks">&nbsp;</span></div> 
</div></div>" 

```

```auto
and stop at getting text at "<div style="margin-top:20px; border-top:1px solid #CCC; padding-top:10px;">" 

```

[FONT=verdana][SIZE=2][COLOR=#000000]pretty complicated for me, i have no idea where to start but heres what i have so far (all it does is read the file…) [/COLOR][/SIZE][/FONT]

```auto
 
<?php 
$artist = urlencode($_GET['artist']); 
$url = 'http://www.last.fm/music/'.$artist.'/+wiki'; 
readfile($url); 
?>

```
