Hello,
Should be rather an easy task, but can you concentrate on what do you want to get as a result? What for is that feature and where are you intended to use it, and how?
Forget about PHP, MWS, Snoopy etc, let me deal with it, just describe the task itself.
Thanks, Alex