Updated index to include php code