Dawn of the Dude - Set Us Free
How can I explode that into just Dawn of the Dude?
Not just for that any band.. like
Kiss - Strutter
or Boys like girls - Dance hall drug?

Dawn of the Dude - Set Us Free
How can I explode that into just Dawn of the Dude?
Not just for that any band.. like
Kiss - Strutter
or Boys like girls - Dance hall drug?
I just tested this, it worked
http://thomas.uk.to/name.php?name=The Fratellis - HenriettaPHP Code:<?php
$name = $_GET['name'];
$name = explode(" - ", $name);
echo $name[0];
?>
Last edited by ZAG; 16-02-2007 at 04:56 PM.
“two players, two sides.
one is light, one is dark.”
- John Locke
I see that you listened to what I said![]()
i used to be NintendoNews. visit my blog or add me on twitter.
need help with vista? i am a microsoft certified technology specialist in configuring windows vista and connected home integrator.. pm me for help!
"I am the way, the truth, and the life. No one comes to the Father except through me"
John 14:6 (NIV)
Done got it lol.
For normal radio stats include this in the page:
Save this as album.php:PHP Code:<?
$name = explode(" - ", $song[0]);
$artist = $name[0];
$url = "album.php?artist=$artist";
$url = eregi_replace(" ", "+", $url);
$thing = file_get_contents($url);
echo "<img src=$thing>";
?>
PHP Code:<?php
header("Content-Type: image/gif");
$artist = $_GET['artist'];
$artist = urldecode($artist);
$url = "http://www.last.fm/music/" . $artist . "/";
$url = eregi_replace(" ", "+", $url);
$data = file_get_contents($url);
$image1start = explode('<div class="imgHolder">', $data);
$image1end = explode('</div>', $image1start[1]);
$image1 = trim($image1end[0]);
$imagestart = explode('<img src="', $image1);
$imageend = explode('" alt', $imagestart[1]);
$image = trim($imageend[0]);
echo $image;
?>
Nice script.
“two players, two sides.
one is light, one is dark.”
- John Locke
http://www.skylightlobby.com/site/ - See it in action there.
Want to hide these adverts? Register an account for free!