converted shell scripts into php files.