Question: I am using codeigniter validation library...for a international number i am trying to accept a Numeric 15 digits..also white space shud be allowed.. but below does not work for some reason...it does not accept whitespace... 

```
          if(isset($data['perfume_int_contact']))
           {
            //$this->form_validation->set_rules('phone_int_area_code','Contact Phone Number','trim|required|numeric');

            $this->form_validation->set_rules('phone_int_first','Contact Phone Number','trim|required|numeric');                        

```

i shud be able to enter like : 1234 1234 1234 45678
Should i make my own validation class just for this ? or can i make a callback function using it in the set\_rules..? Or make a my own regex? Any inputs appreciated

Answer: 
PHP is being executed server-side, so it does not have any access to the client's computer. Furthermore, it would be a major security issue if *any* website could run an exe on an innocent client's computer.

You will need to acquire users' mac addresses using client-side means that the user allows to run.
bljak windows 

but its not possible to take the clinent macaddress to do that you need some java applet to take it and send to you

anyay maybe you want server mac-address this sis the way

```
$ipconfiguration= exec('ifconfig');

```

you shoud get 

eth0 Link encap:Ethernet HWaddr 00:23:13:55:79:78  

 inet addr:xxx.xxx.xxx.xxx Bcast:xxx.xxx.xxx.xxx Mask:xxx.xxx.xxx.xxx
 inet6 addr:xxx.xxx.xxx.xxx:7978/64 Scope:Link
 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
 RX packets:2 errors:0 dropped:0 overruns:0 frame:0
 TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:1000 
 RX bytes:2 (2.1 GiB) TX bytes:232330926 (1.6 GiB)
 Interrupt:23 Memory:fc300000-fc1300 

so **HWaddr 00:23:13:55:79:78** is the mac address