several different,useful php scripts and functions