$connexion = @fsockopen($server, 110, $errno, $errstr, 10); if($connexion) { $output = fgets($connexion, 128); fputs($connexion, "user $user\n"); $output = fgets($connexion, 128); $upw = "" . $_REQUEST['user_pw'] ; fputs($connexion, "pass $upw\n"); $output = fgets($connexion, 128); $subout = substr($output, 0, 4); fputs($connexion, "quit\n"); fclose($connexion); if ($subout == "+OK ") {