<?php
$user = "user@gmail.com";
$pass = "pass";
//Thông tin APP facebook
$secretkey = "62f8ce9f74b12f84c123cc23437a4a32";
$api_key = "882a8490361da98702bf97a021ddc14d";
function tao_sig($postdata){
global $secretkey;
$textsig = "";
foreach($postdata as $key => $value){
$textsig .= "$key=$value";
}
$textsig .= $secretkey;
//$textsig = md5($textsig);
return $textsig;
}
$postdata = array(
"api_key" => $api_key,
"email" => $user,
"format" => "JSON",
"locale" => "vi_vn",
"method" => "auth.login",
"password" => $pass,
"return_ssl_resources" => "0",
"v" => "1.0"
);
$tan=array('tan','khoa')
$test=tao_sig($tan)
echo $test;
- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.6
- Parse error: syntax error, unexpected '$test' (T_VARIABLE) in /in/St8pq on line 32
Process exited with code 255.
preferences:
166.93 ms | 1395 KiB | 35 Q