php help needed

Discussion in 'PHP' started by ryanteck, Dec 4, 2009.

  1. #1
    well im stuck a little bit
    im trying to create a script wich is able to grab a var and use it to get a bit of code from another site

    eg
    var=Sojobo-taro
    submit will then Find In Page habborp.com/home/?name=var
    find:
    <div class="profile-setting">
    <img alt="var" src="http://www.habbo.co.uk/habbo-imaging/avatarimage?figure=hr-802-45.hd-190-1.ch-886-100.lg-285-110.sh-906-110.ea-1404-110.fa-1201-.wa-2009-110&size=b&direction=4&head_direction=4&gesture=sm l" />

    Then I Need It TO Copy figure=hr-802-45.hd-190-1.ch=4&gesture=sml And Place It In The Code
    Thanks A Lot
    Ryanteck
     
    ryanteck, Dec 4, 2009 IP
  2. aquilax

    aquilax Member

    Messages:
    126
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    33
    #2
    Use curl or file_get_content to get the page. Then run preg_match or eregi to get the part you need.
     
    aquilax, Dec 4, 2009 IP