PHP Code:

Get Free PHP codes and scripts. Use PHP script and easily with HTML help and samples. Learn PHP source code, function, forms, website, forum, design.

Link Us:

PHP Free Code

Just put this code to your pages and you will have our logo in your site! This brings traffic to your website.

Favorite Us!


We update weekly!

Visitors:

Online Users:

 

 
 
PHP Code 52
 
 

Last.Fm Artist Description function  Next Code

I have created a small script which will take information about an artist from last fm. (how you manipulate this is up to you)

now im sure that my script probably isn't the best way of doing what it does, but it gets the job done. If anyone wants to add comments on how to make this better please go for it.


---
How it works.

1. Artist is taken from url (http://EXAMPLE.php?artist=...)
surely you can manipulate this to work however you want..

2. File_Get_Contets takes the information from (http://www.last.fm/music/ARTIST/+wiki)

3. str_pos is used to find the position of the text above and below where the artist description is.

4. str_replace is used to replace all of this text and all of the text before and after the artist description

5. all you are left with is you're artist description which is then simply echoed...

 

Preview:

Go to Homepage    Contact Us

 

 
  By Krishna Eydat & Mahmood Bina  

Download free PHP codes and scripts, help with forums, samples and examples of a professional website with PHP design, you can use Javascript codes and HTML scripts and tangs. PHP tutorials and lessons step by step, use PHP free script ,script ,source ,code generator ,sample code ,examples ,script code ,open source, free source ,forms ,code editor ,forum ,array ,function ,website codes ,include ,Web design, webmaster ,protect code , email , PHP forum codes, forum scripts , dynamic code, PHP helps

Contact Us | Links | Site Map
Copyright © 2008 Krishna, Mahmood. All Rights Reserved.