Added php files, and an updated newThread