hi, I want to create some code i php to access myspace account from my website. do you know where i can learn more about how to create website to allow me to access myspace.com account from my website

is thre is any site where i can learn!

AM

    Myspace's Terms & Conditions sounds like it prohibits you from doing this, so no, I doubt there is any (legit) website where you can learn to do this.

      Unless Myspace provides an API of some sort (the way, say, Facebook does). If it does, there should be something on the subject on Myspace's site.

        I'm not sure how want this to look but have you tried frames?

          Well I can imagine two things that you want to do. Either display content from the public side of your profile or display info from the private side that you need to login to see.

          If you want to in theory leech content from the public side. Since almost every element in the markup has an id and/or class associated with it. You could grab it via $ content = file_get_contents($url_to_myspace_page); and then because html/xhtml is in fact XML you could parse the string and find exactly what you want or you could curse over it via a regex if there is an expression.

          Personally i like DOM and/or SimpleXML to parse it out as you can use Xpath and Xquery to grab exactly the elements you want.

          Now,

          If you are trying to get something from the login side. You could probably use CURL if it is enabled, and post your username and password to as the appropriate fields to the myspace login script and in the same session grab the data with the curl session from your logged in page. This of course is entirely a theory but i assume you could make something along this line work for login pages.

            very cool.

            Figured there was something for the sort out there.

              well, next time try google 😛 all i searched for was "myspace api"

              Remember to mark this thread resolved, if it is.

                Write a Reply...