| Server IP : 127.0.0.1 / Your IP : 192.168.99.1 Web Server : Apache/2.4.35 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9 System : Windows NT WIN-JEJMB9EN0L0 10.0 build 14393 (Windows Server 2016) AMD64 User : Administrator ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /laragon/www/_ppid/modules/ |
Upload File : |
<?php //disini menggunakan link demo $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://ppid.lumajangkab.go.id/api/v2/dokumen/read/sk_ppid', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_HTTPHEADER => array( 'Token-Api: '.$token_anda/* token kominfo*/ ), )); $response = curl_exec($curl); curl_close($curl); $json = json_decode($response,true); ?> <div class="row" style="margin-top: 50px"> <div class="col-md-12"> <div class="panel panel-primary"> <div class="panel-heading"> ::: </div> <div class="panel-body" style="height:950px"> <iframe src="<?= $json['sk'] == '' ? 'about:blank' : $json['sk']?>" frameborder="0" width="100%" height="920"></iframe> </div> </div> </div> </div>