PD CON
This commit is contained in:
parent
8fdb9ef779
commit
85c248965c
@ -427,16 +427,16 @@ class PD_Controller extends REST_Controller {
|
|||||||
$ch = curl_init();
|
$ch = curl_init();
|
||||||
$timeout = 5;
|
$timeout = 5;
|
||||||
$url = 'https:/ssa.sineedge.com/officertracking/'.$randomString;
|
$url = 'https:/ssa.sineedge.com/officertracking/'.$randomString;
|
||||||
echo "$url";
|
//echo "$url";
|
||||||
curl_setopt($ch,CURLOPT_URL,'http://tinyurl.com/api-create.php?url='.$url);
|
curl_setopt($ch,CURLOPT_URL,'http://tinyurl.com/api-create.php?url='.$url);
|
||||||
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
|
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
|
||||||
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
|
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
|
||||||
$tinyurl = curl_exec($ch);
|
$tinyurl = curl_exec($ch);
|
||||||
curl_close($ch);
|
curl_close($ch);
|
||||||
$pd_details['encrypted_url'] = $tinyurl;
|
$pd_details['encrypted_url'] = $tinyurl;
|
||||||
echo $tinyurl;
|
//echo $tinyurl;
|
||||||
/************ASSIGN Random URL******************/
|
/************ASSIGN Random URL******************/
|
||||||
die();
|
//die();
|
||||||
|
|
||||||
$pd_id = $this->PD_Model->saveRecords($pd_details,PDTRIGGER);
|
$pd_id = $this->PD_Model->saveRecords($pd_details,PDTRIGGER);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user