Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7780867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T19:02:38+00:00 2026-06-01T19:02:38+00:00

I found a lyrics API at http://www.lyrdb.com/services/lws-tech.php . It basically returns a set of

  • 0

I found a lyrics API at http://www.lyrdb.com/services/lws-tech.php. It basically returns a set of results upon being queried. I am not well versed with PHP to be frank, but I have a clue about this somewhat, that the result set returned needs to be stored in a String variable and then the song ID extracted from it that the user clicks on, to retrieve the lyrics via the song ID.

Can anyone help me in scripting this please! Appreciate your help so much 🙂

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T19:02:40+00:00Added an answer on June 1, 2026 at 7:02 pm

    No one can teach you PHP on SO. However to get you started you basically need two functions of PHP.

    1. file_get_contents
    2. split

    Below is a sample code which will do this for you:

    abhinavsingh@ubuntu:~$ cat lyrdb.php 
    <?php
    
    $res = file_get_contents("http://webservices.lyrdb.com/lookup.php?q=we%20are%20the%20champions&for=trackname&agent=agent");
    //echo $res;
    $res = split(PHP_EOL, $res);
    //print_r($res);
    foreach($res as $k=>$v) {
        $v = split("\\\\", $v);
        //print_r($v);
        $lyr = file_get_contents("http://webservices.lyrdb.com/getlyr.php?q=".$v[0]);
        //echo $lyr;
    }
    
    ?>
    

    This fetches lyrics for all the results returned from first query.
    You might just want to do it on limited set of data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Found the documentation here http://www.trirand.com/jqgridwiki/doku.php?id=wiki:toolbar_searching I want JQgrid filterToolbar blank top row in the
Found this code on http://www.docjar.com/html/api/java/util/HashMap.java.html after searching for a HashMap implementation. 264 static int
Found this official ACS demo http://www.fabrikamshipping.com/ while researching on ACS. In the app itself,
Found this one http://www.kite9.com/content/adl-new-visual-language-part-2 (presentation here http://www.kite9.com/content/muddle-uml ) not cheap :( Any others that
Found a nice drop down menu: Demo: http://www.jqueryload.com/examples/menu/ HTML, CSS & JavaScript: http://www.jqueryload.com/jquery-dropdown-menu-with-google-style I've
found this runtime INotifyPropertyChanged generator http://www.codeproject.com/Articles/141732/Automatic-Implementation-of-INotifyPropertyChanged wondering if there is a static generator to
Found two libraries Rebex ( www.rebex.net ) and QuikSoft ( www.quiksoft.com ) any comments
Found on JavaScript SDK http://developers.facebook.com/docs/reference/javascript/ ... Asynchronous Loading -------------------------------- This code loads the SDK
Found this here http://sla.ckers.org/forum/read.php?2,15812,page=2 If you copy the title of the question and run
Found this great article on using jquery for image swapping: http://jquery-howto.blogspot.com/2009/05/replacing-images-at-time-intervals.html How do you

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.