print "<ol>";
foreach ($artistsSongs as $artistSong) {
- print "<li><a href=\"/bin/webchord.cgi?chordpro=$artistSong\">";
+ print "<li><a href=\"webchord.cgi?chordpro=$artistSong\">";
print basename ($artistSong, ".pro");
print "</a></li>";
} // foreach
appear. You can play the song while you read the words and follow the
chords! <b>Note:</b> You can right click and save the song's mp3 file to
your computer. If the song does not have a corresponding .mp3 file then
- no .mp3 player is displayed. For example, <a href="http://defaria.com/bin/webchord.cgi?chordpro=/web/songbook/Songs/Amie.pro">Amie</a>.</li>
+ no .mp3 player is displayed. For example, <a href="http://defaria.com/songbook/webchord.cgi?chordpro=/web/songbook/Songs/Amie.pro">Amie</a>.</li>
<li>Again, if the song has a corresponding .mp3 file I now re-write the .pro
file to include {musicpath:/sdcard/SongBook/Medai/<<i>title</i>>.mp3}.
foreach ($songmatches as $songmatch) {
$artist = getArtist ($songmatch);
$title = basename ($songmatch, ".pro");
- print "<li><a href=\"/bin/webchord.cgi?chordpro=$songmatch\">$title</a>";
+ print "<li><a href=\"webchord.cgi?chordpro=$songmatch\">$title</a>";
print " (<a href=\"displayartist.php?artist=$artist\">$artist</a>)</li>";
} // foreach
given the above SongTitle="Brown Eyed Girl" we can formulate the URL
to render it thusly:</p>
-<blockquote><a href="http://defaria.com/bin/webchord.cgi?chordpro=/web/songbook/Songs/Brown Eyed Girl.pro">http://defaria.com/bin/webchord.cgi?chordpro=/web/songbook/Songs/Brown Eyed Girl.pro</a></blockquote>
+<blockquote><a href="http://defaria.com/songbook/webchord.cgi?chordpro=/web/songbook/Songs/Brown Eyed Girl.pro">http://defaria.com/songbook/webchord.cgi?chordpro=/web/songbook/Songs/Brown Eyed Girl.pro</a></blockquote>
<p>You can do the same thing for the other songs there too.</p>
that have the webchord.cgi links to render them like:</p>
<ul>
- <li><a href="http://defaria.com/bin/webchord.cgi?chordpro=/web/songbook/Songs/Across the Universe.pro">Across the Universe</a></li>
- <li><a href="http://defaria.com/bin/webchord.cgi?chordpro=/web/songbook/Songs/American Pie.pro">American Pie</a></li>
- <li><a href="http://defaria.com/bin/webchord.cgi?chordpro=/web/songbook/Songs/Amie.pro">Amie</a></li>
- <li><a href="http://defaria.com/bin/webchord.cgi?chordpro=/web/songbook/Songs/Back in the USSR.pro">Back in the USSR</a></li>
+ <li><a href="http://defaria.com/songbook/webchord.cgi?chordpro=/web/songbook/Songs/Across the Universe.pro">Across the Universe</a></li>
+ <li><a href="http://defaria.com/songbook/webchord.cgi?chordpro=/web/songbook/Songs/American Pie.pro">American Pie</a></li>
+ <li><a href="http://defaria.com/songbook/webchord.cgi?chordpro=/web/songbook/Songs/Amie.pro">Amie</a></li>
+ <li><a href="http://defaria.com/songbook/webchord.cgi?chordpro=/web/songbook/Songs/Back in the USSR.pro">Back in the USSR</a></li>
<li>...</li>
</ul>
to the title of the song you want to render:</p>
<blockquote>
-<a href="http://defaria.com/bin/webchord.cgi?chordpro=/web/songbook/Songs/Amie.pro">http://defaria.com/bin/webchord.cgi?chordpro=/web/songbook/Songs/Amie.pro</a>
+<a href="http://defaria.com/songbook/webchord.cgi?chordpro=/web/songbook/Songs/Amie.pro">http://defaria.com/songbook/webchord.cgi?chordpro=/web/songbook/Songs/Amie.pro</a>
</blockquote>
<p><b>Note:</b></p>
<ul>
<li>URLs are case sensitive! ...chordpro=amie.pro is not the same as ...chordpro=Amie.pro</li>
- <li>Browsers tend to change spaces in a URL to %20. %20 is the octal representation for a space character. So if you see %20 in a URL like http://defaria.com/bin/webchord.cgi?chordpro=/web/songbook/Songs/Back%20in%20the%20USSR.pro. Don't fear - they're merely spaces.</li>
+ <li>Browsers tend to change spaces in a URL to %20. %20 is the octal representation for a space character. So if you see %20 in a URL like http://defaria.com/songbook/webchord.cgi?chordpro=/web/songbook/Songs/Back%20in%20the%20USSR.pro. Don't fear - they're merely spaces.</li>
</ul>
<h2>Songbook for PC</h2>
function songsDropdown () {
global $songs;
- print "<form method=\"post\" action=\"/bin/webchord.cgi\" name=\"song\">";
+ print "<form method=\"post\" action=\"webchord.cgi\" name=\"song\">";
print "Songs: ";
print "<select name=\"chordpro\">";
$title = basename ($song, ".pro");
- echo "<li><a href=\"/bin/webchord.cgi?chordpro=$song\">$title</a>";
+ echo "<li><a href=\"webchord.cgi?chordpro=$song\">$title</a>";
if ($artist != "") {
echo " ($artist)";