codes for .php and ADT