[advanced search]
Results from the most recent live auction are here.
21 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming
User Name
Password

Old 05-31-2006, 11:44 PM   · #1
iNod
Eating Pie
 
iNod's Avatar
 
Name: Steve
Location: Canada
Trader Rating: (66)
Join Date: Nov 2004
Posts: 2,284
NP$: 91.30 (Donate)
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
PHP & MySpace

Hello,

I am wondering how to get some information from MySpace... Such as profile information. I want to create a stats program like profilesnoop.com but I can't seem to find out how to get the information of the users email or what not from it.

Any help will be apprecited.

- Steve


Please register or log-in into NamePros to hide ads
__________________
RegisterDub.com - 200th Customer Milestone
ZuneParts.net - International Zune Parts and Accessories
FeaturedFont.com - One Top Free Font a Day!
iNod is offline   Reply With Quote
Old 06-01-2006, 12:45 AM   · #2
Palyriot
NamePros Regular
 
Palyriot's Avatar
 
Name: Derek
Location: Seattle, Wa
Trader Rating: (14)
Join Date: Jul 2004
Posts: 597
NP$: 69.00 (Donate)
Palyriot is a jewel in the roughPalyriot is a jewel in the roughPalyriot is a jewel in the rough
You can have php scan through the page and sort out certain stuff by looking for Height: and that kind of stuff. I think that would be doable.
Palyriot is offline   Reply With Quote
Old 06-01-2006, 04:30 AM   · #3
hairyfreak
NamePros Regular
 
hairyfreak's Avatar
 
Name: Harry Truman
Location: Derbyshire, UK
Trader Rating: (13)
Join Date: Dec 2005
Posts: 887
NP$: 26.45 (Donate)
hairyfreak is just really nicehairyfreak is just really nicehairyfreak is just really nicehairyfreak is just really nice
http://uk.php.net/file_get_contents

The PHP file_get_contents function is your friend here. It will simply read the contents of the profile page into a string, then you can search the string for the details you want to use.
Hope this helps.
hairyfreak is offline   Reply With Quote
Old 06-01-2006, 07:29 AM   · #4
Chaos King
NamePros Member
 
Name: Jamie Chung
Location: Coral Springs
Trader Rating: (2)
Join Date: May 2006
Posts: 60
NP$: 1.75 (Donate)
Chaos King is an unknown quantity at this point
Originally Posted by hairyfreak
http://uk.php.net/file_get_contents

The PHP file_get_contents function is your friend here. It will simply read the contents of the profile page into a string, then you can search the string for the details you want to use.
Hope this helps.




Ew, never use that function to do that. CURL all the way. If you have a good web host, CURL will already be installed and enabled on your website. CURL has been benchmarked at 35% faster than file_get_contents(). If you don't have CURL, then you have no other choice.
http://us3.php.net/curl
Chaos King is offline   Reply With Quote
Old 06-01-2006, 07:55 AM   · #5
NonProphet
NamePros Member
 
Name: Ryan
Location: Central PA
Trader Rating: (3)
Join Date: Apr 2006
Posts: 98
NP$: 0.00 (Donate)
NonProphet is on a distinguished road
you can use file_get_contents then you can use explode to parse out the html.
NonProphet is offline   Reply With Quote
Old 06-01-2006, 09:03 AM   · #6
hairyfreak
NamePros Regular
 
hairyfreak's Avatar
 
Name: Harry Truman
Location: Derbyshire, UK
Trader Rating: (13)
Join Date: Dec 2005
Posts: 887
NP$: 26.45 (Donate)
hairyfreak is just really nicehairyfreak is just really nicehairyfreak is just really nicehairyfreak is just really nice
Originally Posted by Chaos King
Ew, never use that function to do that. CURL all the way. If you have a good web host, CURL will already be installed and enabled on your website. CURL has been benchmarked at 35% faster than file_get_contents(). If you don't have CURL, then you have no other choice.
http://us3.php.net/curl


Never tried CURL, which is why I didn't suggest it
However I have used file_get_contents() before, and found it incredibly easy to manipulate information.
hairyfreak is offline   Reply With Quote
Old 06-01-2006, 10:24 AM   · #7
iNod
Eating Pie
 
iNod's Avatar
 
Name: Steve
Location: Canada
Trader Rating: (66)
Join Date: Nov 2004
Posts: 2,284
NP$: 91.30 (Donate)
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
Alright.. I know how to do that.. But how do I get the users username. Like I am building a system that tracks stats and users that visit YOUR myspace profile. But would I get the users username who is viewing your profile?

- Steve
__________________
RegisterDub.com - 200th Customer Milestone
ZuneParts.net - International Zune Parts and Accessories
FeaturedFont.com - One Top Free Font a Day!
iNod is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
Proof is in the Parking Buy Flash Arcade Game Script EscrowDNS
Advertise your business at NamePros
All times are GMT -7. The time now is 10:20 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0