Jump to content

grab myspace images


jonniejoejonson

Recommended Posts

If you add your myspace url on slide.com they grab all your images from your myspace... does anyone know how they do this? and cvan it be done using php.

They also offer the same service for facebook, but you have to addlogin details I assume this is just an aplication you can create using facebook? Anyway thanks to any responders.

Link to comment
Share on other sites

i actually had a topic about this yesterday.. this is the code i finally got to that can get the default picture off of someones myspace page

 

<?php
$ch = curl_init() or die(curl_error());
curl_setopt($ch, CURLOPT_URL,"http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=$friendid");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data1=curl_exec($ch) or die(curl_error());

$okay="/<a type.*>/";

if(preg_match($okay, $data1, $matches)){
echo $matches[0];
}

echo curl_error($ch);
curl_close($ch);
?>

 

getting all of the pictures in someones gallery would probably be similar to that but harder.. it might use arrays too..

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.