Added the php script for web use