Frequently Asked Questions
Some frequently asked questions are below. I have also included some other (non-user-submitted) questions that I thought
might help you out:
1) What would I use this class for?
This class is used to provide a PHP-based interface to the MPD music daemon. The two combined will allow you to create your own web-based jukebox program.
2) What are the requirements for this class??
To use the class, you'll need:
A working PHP 4.2+ environment.
A running MPD daemon (tested with MPD v0.8+).
Network access to the machine running the daemon (it can be the same machine).
3) How do I install the class??
You can put the class file (mpd.class.php) anywhere that it can be include()'ed by PHP. This can be a web-accessible subdirectory, or some place in PHP's include_path.
4) Do I need to modify the mpd.class.php file?
There is no need to modify the mpd.class.php file for your own setup. You do not need to change the $mpd_host and $mpd_port variables in that file -- in fact, doing so will probably cause you headaches. You can, however, freely modify it if it doesn't do something you'd like! (But I'd like to know so I can incorporate it into the next version)
5) I'm planning to upgrade to version x.x.x of MPD, will I have any problems?
In general, no. Where deprecations occur, the class is smart enough to realize the 'new' way to do things. Obviously, new features introduced in MPD that limit connectivity (as in the password authentication in version 0.10.0) may influence the class usage. However, I try to keep up with the MPD development cycle for these types of changes.
6) Does your class need to reside on the same machine as MPD?
Definately not, however, this class does need to be on a machine that has TCP/IP connectivity to the MPD box.
7) Should I upgrade to the latest version of your class?
Whenever possible. I am always adding new features and efficiencies.
8) Can this run on Windows-based web servers?
Of course. It uses PHP, which is (for the most part!) platform-independant. However, MPD is currently a *nix only product.
9) Your example file is buggy and does not look pretty...
The example file is just that -- an example! This class was made so that YOU could make your OWN jukebox program. If you make my example better, then GREAT! It is intended only as a simple illustration on how the class can be used.
9) I've created an amazing Jukebox program using your class; want to see it??
VERY much! I'd love to hear about your projects... tell me how you use it, show me your best job. I'd love to share it too, with your permission of course.
Got a Question?
Send an email to bcarlisle@24oz.com and ask away.
|