Web Hosting
GigFoot Web Hosting


Software
Support
Hosting
Boards
Today
Users
Links
Flash
FAQ
LOL
3D

FAQ Index / Top Ten FAQ's / Newest FAQ's / Search / Go Back

Using the Flash MP3Player in the cgi-bin

Some 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.
  1. Unzip the mp3player.zip archive to your local computer.
  2. Rename the index.cgi file "mp3.cgi"
  3. Edit lines 20 and 21 of mp3.cgi to say the following:
      my $MP3_BIN = "../mp3player/";
      my $MP3_BIN_URL = "/mp3player/";
  4. Upload the new mp3.cgi script to your cgi-bin folder. Change permissions to 0755 on the mp3.cgi file.
  5. 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.
  • Prev Question / Next Question / Question Index
    What do you think of this Question? Vote Thumbs Up or Thumbs Down. Vote Toes Up for this Item Vote Toes Down for this Item Reputation: 1 / Feedback: 0
    Hits:1370
IP:188
ISP:142
REF:56
GO LIVE