How to use the "play_gz.php script

Here is the script to play mid.gz files. It is best if you have a seperate directory for your various music files. i.e. a directory named "midi" for your mid.gz files.

Copy the code below. Now in Ziteman go to the directory with your mid.gz files. Click on the "MFile" button. Name the file "play_gz.php" then click on the "MFile" button again. When the edit screen comes up, paste the code into your edit screen then click on "Save". You have installed the script. You should now have a file named "play_gz.php" in your directory.



In order to play the mid.gz file in your sig or webpage you will need an embed tag as below. Where "nameofyourdirectory" is the directory name you have your mid.gz files located in. And where "yourfilestitle.mid.gz" is the "relative" url of your file, ie, if the url of your file is http://zboxhosting.com/midi/jingo.mid.gz" then the "relative" url of your file would be "jingo.mid.gz". Also keep in mind the "?track=" is important as that tells the script what file to play.






And below is the version of the script to use to play "Music Modules" aka "mod's". These music files have the extensions ".mod", ".xm", and ".s3m". Keep in mind no changes in the script are needed in order to play the three diffent extensions. You will need to have a seperate directory for your mod files. Also keep in mind that most if not all gzipped mod files WILL NOT PLAY when the file is clicked on in Ziteman. This is normal and the file will play just fine in your sig or web page.

Copy the code below. Now in Ziteman go to the directory with your gzipped mod files. Click on the "MFile" button. Name the file "modplay_gz.php" then click on the "MFile" button again. When the edit screen comes up, paste the code into your edit screen then click on "Save". You have installed the script. You should now have a file named "modplay_gz.php" in your directory.



In order to play the mod.gz, xm.gz, or s3m.gz file in your sig or webpage you will need an embed tag as below. We will use the "mod.gz" extension as an example. Where "nameofyourdirectory" is the directory name you have your gzipped mod files located in. And where "yourfilestitle.mod.gz" is the "relative" url of your file, ie, if the url of your file is http://zboxhosting.com/midi/armani.mod.gz" then the "relative" url of your file would be "armani.mod.gz". Also keep in mind the "?track=" is important as that tells the script what file to play.



As always if you have any questions regarding this script please post them in our newsgroup. Also if you get error codes please post them also.




Copyright©2003/2004 ZboX Webhosting