Updated files with working php