fixed several more PHP issues
fixed rev.php bug from perl porting
fixed PHP foreach(2)
fixed PHP foreach(1)
fixed PHP foreach
updated php comparison
Various updates including date regex fix
fixed a typo that caused JS and PHP compilation errors
added cc validation routines to grammar
fixed problems caused by resync