Fixed a long of php stuff again