jd2007 Posted October 3, 2007 Share Posted October 3, 2007 i want to display the photo, name, headline, Orientation, Here For, Gender, Age, Location, Profile Updated from the first result, from here : http://searchresults.myspace.com/index.cfm?fuseaction=find.search&searchType=network&interesttype=&country=&searchBy=Display&f_first_name=hello&Submit=Find&SearchBoxID=FindAFriend here's my code: <?php $file=file_get_contents("http://searchresults.myspace.com/index.cfm?fuseaction=find.search&searchType=network&interesttype=&country=&searchBy=Display&f_first_name=hello&Submit=Find&SearchBoxID=FindAFriend"); $a=explode('<table id="friendresults" class="bordered">', $file); $b=explode('<table class="findpaging" border="0" cellspacing="5" cellpadding="0" width="100%" bordercolor="#000000" bgcolor="white">', $a[1]); $c=explode(' <td> <ul> <li><a href="http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendID=2244">View Profile</a></li> <li><a href="http://messaging.myspace.com/index.cfm?fuseaction=mail.message&friendID=2244&Mytoken=1E016271-1734-4F48-A2DC33861AF3A5FE38969068">Send Message</a></li> <li><a href="#" onclick="javascript: IsMySpaceIMInstalledById(2244);">Send Instant Message</a></li> <li><a href="http://messaging.myspace.com/index.cfm?fuseaction=mail.forward&friendID=2244&f=forwardprofile&Mytoken=1E016271-1734-4F48-A2DC33861AF3A5FE38969068">Forward to a Friend</a></li> <li class="last"><a href="http://blog.myspace.com/index.cfm?fuseaction=blog.addToPrivateList&friendID=2244&Mytoken=1E016271-1734-4F48-A2DC33861AF3A5FE38969068">Add to Blog Preferred List</a></li> </ul> </td>', $b[0]); echo $c[0]; ?> but i don't get the expected results...pls help.... Quote Link to comment Share on other sites More sharing options...
shocker-z Posted October 3, 2007 Share Posted October 3, 2007 what are you getting extra that you want removing? I get a photo and then hello Headline: "" Orientation: No Answer Here For: Friends Gender: Female Age: 107 Location: Profile Updated: 26 Aug 2003, 15:28 * View Profile * Send Message * Send Instant Message * Forward to a Friend * Add to Blog Preferred List Regards Liam Quote Link to comment Share on other sites More sharing options...
jd2007 Posted October 3, 2007 Author Share Posted October 3, 2007 i want this only: (photo) hello Headline: "" Orientation: No Answer Here For: Friends Gender: Female Age: 107 Location: Profile Updated: 26 Aug 2003, 15:28 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.