Strange php problems fixed