Using the Flash MP3Player in the cgi-binSome servers require you to run your cgi programs inside the cgi-bin. The mp3 player will run inside the cgi-bin but you will need to make a minor adjustment to the index.cgi script included in the mp3player zip archive. Lines 20 and 21 ask you to specify 2 variables. They are MP3_BIN and MP3_BIN_URL. These values are currently set to "./" when you get your fresh copy. change line 20 so the program can find the folder location of the folder where your mp3 files will be stored. Change MP3_BIN_URL to the url of your mp3player via a web browser.
- Unzip the mp3player.zip archive to your local computer.
- Rename the index.cgi file "mp3.cgi"
- Edit lines 20 and 21 of mp3.cgi to say the following:
my $MP3_BIN = "../mp3player/"; my $MP3_BIN_URL = "/mp3player/";
- Upload the new mp3.cgi script to your cgi-bin folder. Change permissions to 0755 on the mp3.cgi file.
- Place all of your mp3's inside a folder called "mp3player" in your main website directory. This folder will hold all of your mp3 files.
Some websites may have an extra folder in their MP3_BIN (line 20). Apache web servers might have line 20 and 21 say the following:
my $MP3_BIN = "../htdocs/mp3player/";
my $MP3_BIN_URL = "/mp3player/"; The htdocs is a folder containing the user's web content. If you know the absolute path to your MP3_BIN you may enter that in line 20 also. |