HERE it is. Hope it's working. Let me know!!
php:
// Posted variables.
$emailUser = $POST['emailUser'];
$emailPass = $POST['emailPass'];
$emailQuota = $_POST['emailQuota'];
// Login details
$u = "cpanelUsername"; // your cpanel username.
$p = "cpanelPassword"; // your cpanel password.
$domain = "domain.com"; // no www.
$skin = "x"; // your cPanel skin.
// Register POP Account on cPanel.
$file =
fopen("http://$u:$p@$domain:2082/frontend/$skin/mail/doaddpop.html?emai
l=$emailUser&domain=$domain&password=$emailPass"a=$emailQuota",
"r");
if(!$file)
{
echo "<p>Unable to open remote file.\n";
exit;
}
while(!feof ($file))
{
$line = fgets ($file, 1024);
if(eregi("already exists!", $line, $out))
{
echo "That name is in use. Please Try Another name.";
exit;
}
}
fclose($file);