Fixed a long of php stuff