Added a php4 porting

	new file:   validator.php