0

I have a Motorola i475w and I want to do a WAP website that gets my cellphone's ID when I access it. The website uses PHP and WML. How can I get cellphone's ID using WML/PHP?

1 Answers1

1

Well you can only look at the headers. Sometimes the IMEI number is sent along with the headers but they are not guaranteed to be present.

foreach (getallheaders() as $name => $value) {
    echo "$name: $value\n";
}
Andy Gee
  • 3,149
  • 2
  • 29
  • 44
  • The function getallheaders() will only work on devices that have Apache installed on them. Anyway, thanks. – Pedro Specian Sep 13 '13 at 16:42
  • The `getallheaders()` function is so you can see what headers are sent to your PHP server. Not for use on the device itself. – Andy Gee Sep 13 '13 at 16:46