updated php scripts
php scripts space bug fixed