Warning solved, php routines optimized