if (isSmartPhone()) { include $_SERVER['DOCUMENT_ROOT'].'/login_sp.php'; } else {//PC include $_SERVER['DOCUMENT_ROOT'].'/login_pc.php'; }