common php code