You can't with PHP due to it being server sided, this has been discussed and rejected before, unfortunately :-(
The only option I though of was writing a C/C++ program to grab it and running that though PHP, but I'm not good enough in C to do that, so I kinda hit a brick wall.