modify php and java