Avatar of DJLHood
 asked on

I need to know how

Im trying to integrate a custom broadcasting solution with an api. I was told to simply construct a url as defined below, and hit it each song you play. My main shoutcast server is up and running. It is streaming now and i have sam broadcaster running. (not encoding)  but analytics relay is active and i have spacialnet registration. However. How can I get a script to access my shoutcast server via ftp and get the play list information and put it on a server directory on my other host account for archiving.? The information i need to retrieve and archive from my shoutcast server is below.
How can i use a php script on my server to do this?  My server is linux with apache  located at http:larryhoodpublishing.com
My shoutcast server is
My Radio launch page
Fields (bold fields are required)

artist - Name of the artist.
title - Title of the track.
album - Name of the album
label - The record label name
albumyear - The year of this release
viewers - Number of listeners tuned in
stationguid - your unique identifier
Your stationguid is:
A properly constructed url could look like this:

http://logger.loudcity.net/tracks/submit?stationguid=d8dc2bb0-45dd-012e-2e0f-fdbefe3683c8&artist=Areosmith&title=Walk This Way&album=Toys in the Attic&label=Sony&albumyear=2003&duration=221&viewers=25
ProgrammingApache Web ServerWeb ServersProgramming Languages-Other

Avatar of undefined
Last Comment
Bryan Butler

8/22/2022 - Mon

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

ok thanks but not clear about the redirects.php what goes there?

sorry, i didn't understand what do you mean with redirects.php?
Bryan Butler

Redirects.php creates the web page to view the data that was retrieved.  It uses jQuery.  The main part you need is retrieving the data which is yql.php which returns:

Return: The parsed XML in an array form. Use print_r() to see the resulting array structure.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Dirk Haest

I've requested that this question be deleted for the following reason:

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Bryan Butler

I think we got what he needed.  There is some useful information that someone may need.  I don't care who gets the points, but I don't think it should be deleted.
Bryan Butler

I vote 3 and give the points to aabozkurt.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.