PHP Tutorial : Get Data From Finger Print

9:21 AM | , , , , ,



Are you confused about "how to get data from fingerprint with PHP" ?
May be it can help you.

For the first I want to tell you about my fingerprint is "fingerspot" and you can check in their website here.

I use php_curl code for grab data. You can copy paste this code in your program.


$number="";
    for($i=1;$i<=100;$i++){
      $number.=($i.",");
    }
    $number=substr($number,0,strlen($number)-1);
    $url = "http://192.168.2.201/form/Download?uid=".$number."&sdate=2013-09-10&edate=2013-09-10";
 
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL,$url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 
    $server_output = curl_exec ($ch);
 
    curl_close ($ch);
 
    $data = array();
    $record = explode("\n",$server_output);
    foreach($record as $r){
      $r = str_replace("\t"," ",$r);
      $isi = explode(" ",$r);
      array_push($data, $isi);
    }
 
    print_r($data);

Change this link http://192.168.2.201/form/Download?uid=".$number."&sdate=2013-09-10&edate=2013-09-10 into ip address of your fingerprint.

5 comments:

Show said...

not working!

Unknown said...

how about different brand of fingerprint scanner?? it is the same??

Zee said...

error curl_init

Unknown said...

not working

Anonymous said...

I am getting the empty array

Post a Comment

Please leave a comment