J N
asked on
Soundcloud extract data from URL
Hi,
i am building a website in which i would like to have an area where a user can copy and past the sharelink from soundcloud upload it to a database and have a loop echo out each of the urls onto a webpage for users to interact with.
there are a couple steps i was hoping i could get a hand with or some direction i have looked at the soundcloud api but it seems like they are trying to do more complicated stuff such as managing their soundcloud content via their own website. i believe what i am trying to accomplish is mush simpler.
1. the first step i want the admin to be able to simply go to soundcloud find a soung they link copy and paste the share url into a form and submit it - i do not need any help with this-.
2. the admins url will then be stored on a database with a variety of different parameter such as artist, song image etc..
3. essentially the problem i run into is taking the url that the admin user is uploading to the database and extracting all the information to store onto the server.
i have looked at the soundcloud api and registered a new app to get my client code and client secret.
i am trying to test all of it in wamp before i make it public and it seems when i try and use the basic examples posted on the documentation of soundcloud i get errors relating to " Use of undefined constant CURLOPT_HEADER" which i assume it due to the undefined constant of $client = new Services_Soundcloud('YOUR_ CLIENT_ID' , 'YOUR_CLIENT_SECRET');
because it is on the line mentioned. i have followed the example on soundcloud via copy and pasted and put in the required documents but no luck.
could someone point in a direction of a tutorial or good aid that can help me "extract" the data from the "share url" such as artist, title, song id, etc. so i can echo them out in a manner i choice
thanks very much
i am building a website in which i would like to have an area where a user can copy and past the sharelink from soundcloud upload it to a database and have a loop echo out each of the urls onto a webpage for users to interact with.
there are a couple steps i was hoping i could get a hand with or some direction i have looked at the soundcloud api but it seems like they are trying to do more complicated stuff such as managing their soundcloud content via their own website. i believe what i am trying to accomplish is mush simpler.
1. the first step i want the admin to be able to simply go to soundcloud find a soung they link copy and paste the share url into a form and submit it - i do not need any help with this-.
2. the admins url will then be stored on a database with a variety of different parameter such as artist, song image etc..
3. essentially the problem i run into is taking the url that the admin user is uploading to the database and extracting all the information to store onto the server.
i have looked at the soundcloud api and registered a new app to get my client code and client secret.
i am trying to test all of it in wamp before i make it public and it seems when i try and use the basic examples posted on the documentation of soundcloud i get errors relating to " Use of undefined constant CURLOPT_HEADER" which i assume it due to the undefined constant of $client = new Services_Soundcloud('YOUR_
because it is on the line mentioned. i have followed the example on soundcloud via copy and pasted and put in the required documents but no luck.
could someone point in a direction of a tutorial or good aid that can help me "extract" the data from the "share url" such as artist, title, song id, etc. so i can echo them out in a manner i choice
thanks very much
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
no one gave me a complete answer i had to find it out and i had no guidance from EE
That would happen if your installation does not have curl enabled. Create a file named info.php and put the following in it:
<?php
phpinfo();
?>
Load it, and look for the "curl" section. It should have:
cURL support enabled
If that is not the case, you will need to enable it.