How to send song
artist and title to any website? |
The Magic RDS is a great tool for song information
processing. Why do not utilize it?
- Open the External Text window and select More Options
card.
- Configure the HTTP Query tool.
- Make sure the selected source is valid, click Close
and check the http://pira.cz/rds/test.asp
page.
This is the test.asp file listing (PHP would look
similarly):
<html>
<body>
<% dim s
s=Request.QueryString("song")
set fs=Server.CreateObject("Scripting.FileSystemObject")
if s<>"" then
set f=fs.OpenTextFile(Server.MapPath("text.txt"),2,true)
f.WriteLine(s)
f.Close
Set f=Nothing
else
If (fs.FileExists(Server.MapPath("text.txt")))=true Then
set f=fs.OpenTextFile(Server.MapPath("text.txt"),1)
Response.Write("On air: "+f.ReadAll)
f.Close
Set f=Nothing
end if
end if
set fs=Nothing %>
</body>
</html>
Please note that this is only an example.
Although handling the text string sent by GET method is a simple job, the implementation depends on several criteria like access rights, server configuration etc.
Pira.cz cannot study individual cases and propose any solutions. Contact your web administrator.
|