Pioneers of Website Services in EGYPT

New Egyptian Mobile Phone Numbers conversion System

Convert up to 50 Number at the same time using our online conversion system



Enjoy .. !!!

“;
echo “

“;
echo “

“;
echo “

“;

// require_once(‘validate/smtp_validateEmail.class_2.php’);

$data = explode(“\n”, $_POST[‘list’]);
$dcount = count($data);

// if ( $dcount > $Max) { $dcount =$Max; }

echo “
“;
echo $data[$i] . “
“;

// $link = mysql_connect(‘localhost’, ‘egyptmai_vadmin’, ‘abc123abc’);
// $db_selected = mysql_select_db(‘egyptmai_validate’, $link);

for ($i=0; $i < $dcount; $i++) { if (trim ($data[$i]) <> null) {

$number = trim($data[$i]);

if ( substr($number, 0 , 3 ) == ‘015’) {
$x = 4; }
else if ( substr($number, 0 , 2 ) == ’01’) {
$x = 3; }
else if ( substr($number, 0 , 6 ) == ‘002015’) {
$x = 7; }
else if ( substr($number, 0 , 5 ) == ‘+2015’) {
$x = 6; }
else if ( substr($number, 0 , 5 ) == ‘00201’) {
$x = 6; }
else if ( substr($number, 0 , 4 ) == ‘+201’) {
$x = 5; }
else {
echo “wrong format”;
next($i);
}

$pcode = substr($number , 0, $x) ;
$acode = substr($pcode, -3) ;
$xnum = substr($number , $x );

if ($acode == ‘010’ ) { $acode = ‘0100’; }
else if ($acode == ‘012’ ) { $acode = ‘0122’ ;}
else if ($acode == ‘011’ ) { $acode = ‘0111’ ;}
else if ($acode == ‘016’ ) { $acode = ‘0106’ ;}
else if ($acode == ‘019’ ) { $acode = ‘0109’ ;}
else if ($acode == ‘0151’ ) { $acode = ‘0101’ ;}
else if ($acode == ‘014’ ) { $acode = ‘0114’ ;}
else if ($acode == ‘017’ ) { $acode = ‘0127’ ;}
else if ($acode == ‘018’ ) { $acode = ‘0128’ ;}
else if ($acode == ‘0150’ ) { $acode = ‘0120’ ;}
else if ($acode == ‘0152’ ) { $acode = ‘0112’ ;}
else { exit; }

echo ” Old Number ” . $number . ” – New Network Code ” . $acode . ” – New Number : ” ;
echo “” . $acode . $xnum . “
“;

}
}
// mysql_close($link);

?>