Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-28, 07:26:04

Author Topic: [ask] sesepuh kloxo mr  (Read 8621 times)

0 Members and 1 Guest are viewing this topic.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: [ask] sesepuh kloxo mr
« Reply #15 on: 2013-05-09, 00:24:20 »
Coba anda pelajari bagaimana script add, delete, simplelist dan reflect yang anda di /script. Ini command-line yang fungsinya sama dengan json.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline mediamasal

  • Junior Member
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: [ask] sesepuh kloxo mr
« Reply #16 on: 2013-05-09, 22:48:47 »
Quote from: "MRatWork"
Coba anda pelajari bagaimana script add, delete, simplelist dan reflect yang anda di /script. Ini command-line yang fungsinya sama dengan json.

Code: [Select]
function lxlabs_get_via_json($protocol, $server, $port, $param)
{
$param = "login-class=client&login-name=admin&login-password=pass&output-type=json&$param";
$url = "$protocol://$server:$port/webcommand.php";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_POSTFIELDS, $param);
$totalout = curl_exec($ch);
$totalout = trim($totalout);
require_once('JSON.php');
$json = new Services_JSON();
$object = $json->decode($totalout);

if (!is_object($object)) {
print("Fatal Error. Got a non-object from the server: $totaloutn");
exit;
}

return $object;
}

function di atas sama halnya seperti membuat file koneksi ya pa??
kemudian saya membuat 1 file json dan 1 file php misal,
mekanisme pembuatan nya seperti itu bukan pa??
« Last Edit: 1970-01-01, 01:00:00 by Guest »

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.048 seconds with 18 queries.

web stats analysis