Added draft of PHP script, yet to be finished