PHP & MySpace

NamecheapNamecheap
Watch

iNod

Eating PieVIP Member
Impact
66
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
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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.
 
0
•••
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.
 
0
•••
hairyfreak said:
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
 
0
•••
you can use file_get_contents then you can use explode to parse out the html.
 
0
•••
Chaos King said:
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.
 
0
•••
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
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back