Show Phone Number

Started on the old forum in December 2007 · view the original in the archive · old links redirect here

24 replies · 2,508 views · started 18 years ago · 1 min read

TL;DR · summary of 24 replies
  • learner asked how to show users' phone numbers on their site, mentioning Wapindia as an example where it shows user's cell number when accessed from a mobile environment.
  • Blackhowk stated that showing the phone number is not possible using IP addresses or other methods mentioned by GiLL and others.
  • The code provided by GiLL did not work for learner and others who tested it, including those who believed they were great coders like blackhawk, gumslone, subzero, and amylee.
  • Some users speculated that the code might be used to abuse user privacy or for malicious purposes.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

9 participants
learner Lead · 587 posts #1

guys how to show users phone number on site? i saw that this site wapindia has it when u go to his phone environment page it will display your cell number aswell how?

Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

BEST MOBILE ADVERTISER

External image (may be gone)

alesh Lead · 604 posts #9

oh its wapindia.net on that page where u will see ur phone model just click on it and in the next page u will also see ur phone number. how did he do that? External image (may be gone)

thts not ur phn number.... its ur IP address lol

eeeeerrr....

GiLL Senior · 356 posts #10

learner i agree with you lol and ok let me know check here at my site http://2-wap.net/user.php there in user :9 and in user:13 u will see your phone number oh yes but dont go with pc / opera etc use your phone and also if you using proxy and port GPRS internet serves you can see your number i know that and working for me good as well as for my indian user who using proxy/port gprs on their phone may be some here will not agree but its true and use that code which i post here in other topic

left wap stuff

GiLL Senior · 356 posts #11

//here is that code lol

<?php header("Content-type: text/vnd.wap.wml; charset=ISO-8859-1"); echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";

echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n"; echo "\n"; echo "\n";

echo "<wml>"; echo "<card title="$name">"; echo "

\n"; echo "\n"; ////////////////////////////////////////////////////////// $netinfo = getenv(HTTP_X_NETWORK_INFO);

$xnetinfo = $_SERVER['HTTP_X_NETWORK_INFO']; ////////////////////////////////////////////////////////// echo "user9:$netinfo "; echo "user13:$xnetinfo "; echo "--- © your site";

echo "\n"; echo " "; echo "</card>"; echo "</wml>"; ?>

left wap stuff

learner Lead · 587 posts #13

ok here is another one guys External image (may be gone)

function getPhoneNumber()
    {
        if (isset($_SERVER['HTTP_X_NETWORK_INFO']))
        {
            $str1 = $_SERVER['HTTP_X_NETWORK_INFO'];
            $phone = preg_replace('/(.*,)(11[d])(,.*)/i','\2',$str1);
            Return $phone;
        }
        elseif (isset($_SERVER['HTTP_X_UP_CALLING_LINE_ID']))
        {
            $phone = $_SERVER['HTTP_X_UP_CALLING_LINE_ID'];
            Return $phone;
        }
        elseif (isset($_SERVER['HTTP_X_UP_SUBNO']))
        {
            $str3 = $_SERVER['HTTP_X_UP_SUBNO'];
            $getstr3 = preg_replace('/(.*)(11[d])(.*)/i','\2',$str3);
            Return $phone;
        }
        elseif (isset($_SERVER['DEVICEID']))
        {
            $phone = $_SERVER['DEVICEID'];
             Return $phone;
        }
        else
        {
             $phone=123;
            Return $phone;
        }
    }

Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

BEST MOBILE ADVERTISER

External image (may be gone)

metulj Super moderator Principal · 1,726 posts #14

both code look nice... but they dont work.. at least not for me.. and i believe im not the only one External image (may be gone)

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

alesh Lead · 604 posts #16

both code look nice... but they dont work.. at least not for me.. and i believe im not the only one External image (may be gone)

ur right..... it doesnt work at all....

i belive blackhawk, gumslone. subzero nd amylee r great coders around here and as far as i knw they all said its imposible 2 c phn number from the IP address..... soooooooo if they all 2gether dnt knw how it cn b viewed then i thnk its nt posible....

BUT maybe... and just maybe they dnt wanna tell us LOL

why? well imagine what would happend if sudenly all would knw others phn numbers???

sum of us would not take tht as a chance to abuse other ppl but there at wap world theres alot of FREAKS....

4 e.g. sum freak admin c a nice grl on his site and she reject him, and then he sudenly get the code 2 c her phn number....

ugh.......... i thnk its better tht code doesnt exist or tht we dnt knw 4 it......................................................END

eeeeerrr....

WhiteWarrior Principal · 1,419 posts #19

You will NEVER find a phone number via a wap code... if you want it that bad, ask them.. 🙂

amylee Principal · 1,092 posts #20

if phone providers dont even allow imei numbers to be sent out what are the chances that a phone number will even be sent?

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close