Moved php script to seperate file.