remove popwin; add php support