Los Davelyy! Posted August 28, 2009 Share Posted August 28, 2009 Hi, I am using a script I found online, but I am trying to edit it to open any MySpace page used like so www.domain.co.uk/script.php?username=ABC123 My code is this: <?php $username = $_GET['username']; $httpname='http://www.myspace.com/'; $handle = fopen("$httpname"."$username" , "r"); $contents = ''; while (!feof($handle)) { $contents .= fread($handle, 8192); } fclose($handle); $pieces = explode("<center><span class=\"whitetext12\">Upcoming Shows</span>", $contents); $pieces2 = explode("<table bordercolor=\"000000\" cellspacing=\"3\" cellpadding=\"0\" width=\"435\" align=\"center\" bgcolor=\"ffffff\" border=\"0\" class=\"latestBlogEntry\">", $pieces[1]); echo "<table bordercolor=\"6699CC\" cellspacing=\"0\" cellpadding=\"0\" width=\"440\" bgcolor=\"6699CC\" border=\"0\">"; echo $pieces2[0]; ?> Please help. Link to comment https://forums.phpfreaks.com/topic/172334-php-myspace-gig-lister/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.